Files
Nuake-custom/Nuake/Vendors/wren/test/language/this/nested_class.wren
2025-01-30 22:41:17 -05:00

27 lines
391 B
Plaintext

class Outer {
construct new() {}
method {
System.print(this) // expect: Outer
Fn.new {
System.print(this) // expect: Outer
class Inner {
construct new() {}
method {
System.print(this) // expect: Inner
}
toString { "Inner" }
}
Inner.new().method
}.call()
}
toString { "Outer" }
}
Outer.new().method