mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
21 lines
268 B
TypeScript
21 lines
268 B
TypeScript
//! test_output("bar")
|
|
|
|
export default function () {
|
|
const foo = new Foo();
|
|
const barCaller = foo.barCaller();
|
|
|
|
return barCaller();
|
|
}
|
|
|
|
class Foo {
|
|
barString = "bar";
|
|
|
|
bar() {
|
|
return this.barString;
|
|
}
|
|
|
|
barCaller() {
|
|
return () => this.bar();
|
|
}
|
|
}
|