2013-12-21 23:55:08 +00:00
|
|
|
class Outer {
|
|
|
|
|
method {
|
2014-02-13 01:33:35 +00:00
|
|
|
IO.print(this) // expect: Outer
|
2013-12-21 23:55:08 +00:00
|
|
|
|
2014-04-03 02:41:53 +00:00
|
|
|
new Fn {
|
2014-02-13 01:33:35 +00:00
|
|
|
IO.print(this) // expect: Outer
|
2013-12-21 23:55:08 +00:00
|
|
|
|
|
|
|
|
class Inner {
|
|
|
|
|
method {
|
2014-02-13 01:33:35 +00:00
|
|
|
IO.print(this) // expect: Inner
|
2013-12-21 23:55:08 +00:00
|
|
|
}
|
2014-04-03 14:48:19 +00:00
|
|
|
toString { "Inner" }
|
2013-12-21 23:55:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
(new Inner).method
|
|
|
|
|
}.call
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-03 14:48:19 +00:00
|
|
|
toString { "Outer" }
|
2013-12-21 23:55:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
(new Outer).method
|