forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
23 lines
329 B
Plaintext
23 lines
329 B
Plaintext
class Outer {
|
|
method {
|
|
IO.print(this) // expect: Outer
|
|
|
|
new Fn {
|
|
IO.print(this) // expect: Outer
|
|
|
|
class Inner {
|
|
method {
|
|
IO.print(this) // expect: Inner
|
|
}
|
|
toString { "Inner" }
|
|
}
|
|
|
|
(new Inner).method
|
|
}.call()
|
|
}
|
|
|
|
toString { "Outer" }
|
|
}
|
|
|
|
(new Outer).method
|