Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
12 lines
213 B
Plaintext
12 lines
213 B
Plaintext
class Base {
|
|
toString { "Base" }
|
|
}
|
|
|
|
class Derived is Base {
|
|
getClosure { new Fn { super.toString } }
|
|
toString { "Derived" }
|
|
}
|
|
|
|
var closure = (new Derived).getClosure
|
|
IO.print(closure.call()) // expect: Base
|