1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
=== tests/cases/compiler/staticOffOfInstance2.ts ===
class List<T> {
>List : Symbol(List, Decl(staticOffOfInstance2.ts, 0, 0))
>T : Symbol(T, Decl(staticOffOfInstance2.ts, 0, 11))
public Blah() {
>Blah : Symbol(List.Blah, Decl(staticOffOfInstance2.ts, 0, 15))
this.Foo(); // no error
>this : Symbol(List, Decl(staticOffOfInstance2.ts, 0, 0))
List.Foo();
>List.Foo : Symbol(List.Foo, Decl(staticOffOfInstance2.ts, 4, 5))
>List : Symbol(List, Decl(staticOffOfInstance2.ts, 0, 0))
>Foo : Symbol(List.Foo, Decl(staticOffOfInstance2.ts, 4, 5))
}
public static Foo() { }
>Foo : Symbol(List.Foo, Decl(staticOffOfInstance2.ts, 4, 5))
}
|