1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
=== tests/cases/compiler/es6MemberScoping.ts ===
class Foo {
>Foo : Symbol(Foo, Decl(es6MemberScoping.ts, 0, 0))
constructor(store: string) { }
>store : Symbol(store, Decl(es6MemberScoping.ts, 1, 16))
public foo() {
>foo : Symbol(Foo.foo, Decl(es6MemberScoping.ts, 1, 34))
return this._store.length;
>this._store : Symbol(Foo._store, Decl(es6MemberScoping.ts, 5, 5))
>this : Symbol(Foo, Decl(es6MemberScoping.ts, 0, 0))
>_store : Symbol(Foo._store, Decl(es6MemberScoping.ts, 5, 5))
}
public _store = store; // should be an error.
>_store : Symbol(Foo._store, Decl(es6MemberScoping.ts, 5, 5))
}
class Foo2 {
>Foo2 : Symbol(Foo2, Decl(es6MemberScoping.ts, 7, 1))
static Foo2():number { return 0; } // should not be an error
>Foo2 : Symbol(Foo2.Foo2, Decl(es6MemberScoping.ts, 9, 12))
}
|