Add a closure test.

This commit is contained in:
Bob Nystrom
2014-04-19 17:48:06 -07:00
parent 09c707e16a
commit 3087daaece
3 changed files with 19 additions and 1 deletions
@@ -0,0 +1,11 @@
{
var foo = "closure"
new Fn {
{
IO.print(foo) // expect: closure
var foo = "shadow"
IO.print(foo) // expect: shadow
}
IO.print(foo) // expect: closure
}.call
}