diff options
Diffstat (limited to 'test/closure.go')
-rw-r--r-- | test/closure.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/closure.go b/test/closure.go index 54e4cf8ea..3033c02ed 100644 --- a/test/closure.go +++ b/test/closure.go @@ -98,4 +98,15 @@ func main() { println("newfunc returned broken funcs") panic("fail") } + + ff(1) +} + +func ff(x int) { + call(func() { + _ = x + }) +} + +func call(func()) { } |