go.tools/ssa/interp: enable tests of builtin(f()) where f has multiple results.
R=gri CC=golang-dev https://golang.org/cl/14408043
This commit is contained in:
parent
5d0990f591
commit
eb632ebaca
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue