2014-04-20 00:48:06 +00:00
|
|
|
{
|
|
|
|
|
var foo = "closure"
|
2015-07-10 16:18:22 +00:00
|
|
|
Fn.new {
|
2014-04-20 00:48:06 +00:00
|
|
|
{
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(foo) // expect: closure
|
2014-04-20 00:48:06 +00:00
|
|
|
var foo = "shadow"
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(foo) // expect: shadow
|
2014-04-20 00:48:06 +00:00
|
|
|
}
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(foo) // expect: closure
|
2015-02-27 07:08:36 +00:00
|
|
|
}.call()
|
2014-04-20 00:48:06 +00:00
|
|
|
}
|