Support calling the result of a getter (#252)

This commit is contained in:
Andy Hanson
2018-09-09 18:19:11 -07:00
committed by Daniel Wirtz
parent c27b6e8951
commit 3605630747
3 changed files with 251 additions and 39 deletions

View File

@ -0,0 +1,13 @@
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();
}