mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-14 23:58:03 +01:00
23 lines
337 B
Plaintext
23 lines
337 B
Plaintext
class Outer {
|
|
method {
|
|
IO.print(this) // expect: Outer
|
|
|
|
fn {
|
|
IO.print(this) // expect: Outer
|
|
|
|
class Inner {
|
|
method {
|
|
IO.print(this) // expect: Inner
|
|
}
|
|
toString { return "Inner" }
|
|
}
|
|
|
|
(new Inner).method
|
|
}.call
|
|
}
|
|
|
|
toString { return "Outer" }
|
|
}
|
|
|
|
(new Outer).method
|