ssa: fix closure type

This commit is contained in:
Li Jie
2024-11-23 21:05:40 +08:00
parent e042aad819
commit 252f3f0bd6
5 changed files with 162 additions and 0 deletions

11
cl/_testgo/closure2/in.go Normal file
View File

@@ -0,0 +1,11 @@
package main
func main() {
x := 1
f := func(i int) func(int) {
return func(i int) {
println("closure", i, x)
}
}
f(1)(2)
}