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