1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-04-29 00:42:16 +00:00

14 lines
198 B
TypeScript
Raw Normal View History

import "allocator/arena";
class C {
get x(): () => i32 {
return (): i32 => 42;
}
}
export function test(): i32 {
// TODO: GH#251 return new C().x();
let c = new C();
return c.x();
}