2013-12-23 11:17:40 -08:00
|
|
|
class Outer {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-23 11:17:40 -08:00
|
|
|
method {
|
|
|
|
|
_field = "outer"
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(_field) // expect: outer
|
2013-12-23 11:17:40 -08:00
|
|
|
|
|
|
|
|
class Inner {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-23 11:17:40 -08:00
|
|
|
method {
|
|
|
|
|
_field = "inner"
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(_field) // expect: inner
|
2013-12-23 11:17:40 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Inner.new().method
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(_field) // expect: outer
|
2013-12-23 11:17:40 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Outer.new().method
|