From f07fc0178831432b68f1b9bd6c96b257aa2e9abe Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 4 Dec 2025 13:28:22 +0100 Subject: chore: move symbol types and functions in its own package. --- interp/interpreter_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'interp/interpreter_test.go') diff --git a/interp/interpreter_test.go b/interp/interpreter_test.go index 4f5690d..bc353bd 100644 --- a/interp/interpreter_test.go +++ b/interp/interpreter_test.go @@ -262,5 +262,7 @@ func TestComposite(t *testing.T) { {src: `type T struct{N int; S string}; var t T; t = T{2, "foo"}; t`, res: `{2 foo}`}, {src: `type T struct{N int; S string}; t := T{2, "foo"}; t`, res: `{2 foo}`}, {src: `type T struct{N int; S string}; t := T{S: "foo"}; t`, res: `{0 foo}`}, + {src: `a := []int{}`, res: `[]`}, + // {src: `a := []int{1, 2, 3}`, res: `[1 2 3]`}, }) } -- cgit v1.2.3