Files
wren/test/language/this/nested_class.wren
2015-11-27 21:17:34 -08:00

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