mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
14 lines
198 B
TypeScript
14 lines
198 B
TypeScript
|
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();
|
||
|
}
|