Files
wren/test/this/nested_class.wren
T

23 lines
327 B
Plaintext
Raw Normal View History

2013-12-21 15:55:08 -08:00
class Outer {
method {
2014-02-12 17:33:35 -08:00
IO.print(this) // expect: Outer
2013-12-21 15:55:08 -08:00
2014-04-02 19:41:53 -07:00
new Fn {
2014-02-12 17:33:35 -08:00
IO.print(this) // expect: Outer
2013-12-21 15:55:08 -08:00
class Inner {
method {
2014-02-12 17:33:35 -08:00
IO.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
}
(new Inner).method
}.call
}
2014-04-03 07:48:19 -07:00
toString { "Outer" }
2013-12-21 15:55:08 -08:00
}
(new Outer).method