From eb632ebaca4938163b57354169ee35df8af057f4 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Fri, 4 Oct 2013 16:52:12 -0400 Subject: [PATCH] go.tools/ssa/interp: enable tests of builtin(f()) where f has multiple results. R=gri CC=golang-dev https://golang.org/cl/14408043 --- ssa/interp/testdata/mrvchain.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ssa/interp/testdata/mrvchain.go b/ssa/interp/testdata/mrvchain.go index 0799459a..dd43dcb9 100644 --- a/ssa/interp/testdata/mrvchain.go +++ b/ssa/interp/testdata/mrvchain.go @@ -51,14 +51,12 @@ func main() { f1v(g()) f2(g()) f2v(g()) - // TODO(gri): the typechecker still doesn't support these cases correctly. - // if c := complex(complexArgs()); c != 5+7i { - // panic(c) - // } - // if s := append(appendArgs()); len(s) != 2 || s[0] != "foo" || s[1] != "bar" { - // panic(s) - // } - + if c := complex(complexArgs()); c != 5+7i { + panic(c) + } + if s := append(appendArgs()); len(s) != 2 || s[0] != "foo" || s[1] != "bar" { + panic(s) + } i, ok := h() if !ok || i.(string) != "hi" { panic(i)