diff options
Diffstat (limited to 'interp/interpreter_test.go')
| -rw-r--r-- | interp/interpreter_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interp/interpreter_test.go b/interp/interpreter_test.go index 21e6274..42cb7e2 100644 --- a/interp/interpreter_test.go +++ b/interp/interpreter_test.go @@ -258,6 +258,7 @@ func TestComposite(t *testing.T) { run(t, []etest{ {src: "type T struct{}; t := T{}; t", res: "{}"}, {src: "t := struct{}{}; t", res: "{}"}, - // {src: `type T struct{N int; S string}; t := T{2, "foo"}`, res: `{2 foo}`}, + {src: `type T struct {}; var t T; t = T{}; t`, res: "{}"}, + {src: `type T struct{N int; S string}; var t T; t = T{2, "foo"}; t`, res: `{2 foo}`}, }) } |
