mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
12 lines
171 B
TypeScript
12 lines
171 B
TypeScript
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();
|
|
}
|