mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
27 lines
385 B
Plaintext
27 lines
385 B
Plaintext
class Outer {
|
|
construct new() {}
|
|
|
|
method {
|
|
System.print(this) // expect: Outer
|
|
|
|
fn () {
|
|
System.print(this) // expect: Outer
|
|
|
|
class Inner {
|
|
construct new() {}
|
|
|
|
method {
|
|
System.print(this) // expect: Inner
|
|
}
|
|
toString { "Inner" }
|
|
}
|
|
|
|
Inner.new().method
|
|
}()
|
|
}
|
|
|
|
toString { "Outer" }
|
|
}
|
|
|
|
Outer.new().method
|