2013-12-21 15:55:08 -08:00
|
|
|
class Outer {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-21 15:55:08 -08:00
|
|
|
method {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(this) // expect: Outer
|
2013-12-21 15:55:08 -08:00
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Fn.new {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(this) // expect: Outer
|
2013-12-21 15:55:08 -08:00
|
|
|
|
|
|
|
|
class Inner {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-21 15:55:08 -08:00
|
|
|
method {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(this) // expect: Inner
|
2013-12-21 15:55:08 -08:00
|
|
|
}
|
2014-04-03 07:48:19 -07:00
|
|
|
toString { "Inner" }
|
2013-12-21 15:55:08 -08:00
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Inner.new().method
|
2015-02-26 23:08:36 -08:00
|
|
|
}.call()
|
2013-12-21 15:55:08 -08:00
|
|
|
}
|
|
|
|
|
|
2014-04-03 07:48:19 -07:00
|
|
|
toString { "Outer" }
|
2013-12-21 15:55:08 -08:00
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Outer.new().method
|