fix closure test

This commit is contained in:
Marc Vertes
2018-11-08 11:35:28 +01:00
parent f2dccec382
commit c5abd4401d
2 changed files with 2 additions and 4 deletions

View File

@@ -15,8 +15,7 @@ var t = &T1{"test"}
func main() {
f := t.genAdd(4)
//g := f(4)
println(g(5))
println(f(5))
}
// Output:

View File

@@ -717,8 +717,7 @@ var t = &T1{"test"}
func main() {
f := t.genAdd(4)
//g := f(4)
println(g(5))
println(f(5))
}
`
i := NewInterpreter(Opt{Entry: "main"}, "closure6.go")