fix closure test
This commit is contained in:
@@ -15,8 +15,7 @@ var t = &T1{"test"}
|
||||
|
||||
func main() {
|
||||
f := t.genAdd(4)
|
||||
//g := f(4)
|
||||
println(g(5))
|
||||
println(f(5))
|
||||
}
|
||||
|
||||
// Output:
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user