Files
llgo/compiler/cl/_testdefer/firstloop1/in.go
2025-01-08 14:59:01 +08:00

17 lines
201 B
Go

package foo
func f(s string) bool {
return len(s) > 2
}
func Loop() {
for i := 0; i < 3; i++ {
if s := "hello"; f(s) {
defer println(s)
} else {
defer println("world")
return
}
}
}