summaryrefslogtreecommitdiff
path: root/test/closure.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/closure.go')
-rw-r--r--test/closure.go11
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()) {
}