Files
ValueScript/inputs/passing/const/callNestedConstMethod.ts
2023-05-31 12:18:32 +10:00

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;
}
}