mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 15:38:06 -05:00
19 lines
197 B
TypeScript
19 lines
197 B
TypeScript
//! test_output(37)
|
|
|
|
export default function () {
|
|
const foo = new Foo();
|
|
const x = foo.calc();
|
|
|
|
return x;
|
|
}
|
|
|
|
class Foo {
|
|
calc() {
|
|
return this.get();
|
|
}
|
|
|
|
get() {
|
|
return 37;
|
|
}
|
|
}
|