Support 'this' in static functions, fixes #45; Fix propagation of 'ambient' flag

This commit is contained in:
dcodeIO
2018-03-20 12:02:05 +01:00
parent fea8e65a41
commit 2c0ddf4f80
12 changed files with 163 additions and 86 deletions

View File

@ -0,0 +1,8 @@
class Foo {
static bar: i32 = 42;
static getBar(): i32 {
return this.bar;
}
}
assert(Foo.getBar() == 42);