TypeScript/tests/baselines/reference/staticMethodReferencingTypeArgument1.symbols
Anders Hejlsberg a4f9bf0fce
Create type aliases for unresolved type symbols (#45976)
* Create type aliases for unresolved type symbols

* Accept new baselines

* Update fourslash tests

* Unresolved import aliases create tagged unresolved symbols

* Add comments

* Accept new baselines

* Add fourslash tests
2021-09-23 13:21:27 -07:00

54 lines
2.5 KiB
Plaintext

=== tests/cases/compiler/staticMethodReferencingTypeArgument1.ts ===
module Editor {
>Editor : Symbol(Editor, Decl(staticMethodReferencingTypeArgument1.ts, 0, 0))
export class List<T> {
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))
next: List<T>;
>next : Symbol(List.next, Decl(staticMethodReferencingTypeArgument1.ts, 1, 26))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))
prev: List<T>;
>prev : Symbol(List.prev, Decl(staticMethodReferencingTypeArgument1.ts, 2, 22))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))
constructor(public isHead: boolean, public data: T) {
>isHead : Symbol(List.isHead, Decl(staticMethodReferencingTypeArgument1.ts, 5, 20))
>data : Symbol(List.data, Decl(staticMethodReferencingTypeArgument1.ts, 5, 43))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))
}
static MakeHead(): List<T> {
>MakeHead : Symbol(List.MakeHead, Decl(staticMethodReferencingTypeArgument1.ts, 6, 9))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T)
var entry: List<T> = new List<T>(true, null); // can't access T here
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T)
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T)
entry.prev = entry;
>entry.prev : Symbol(List.prev, Decl(staticMethodReferencingTypeArgument1.ts, 2, 22))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
>prev : Symbol(List.prev, Decl(staticMethodReferencingTypeArgument1.ts, 2, 22))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
entry.next = entry;
>entry.next : Symbol(List.next, Decl(staticMethodReferencingTypeArgument1.ts, 1, 26))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
>next : Symbol(List.next, Decl(staticMethodReferencingTypeArgument1.ts, 1, 26))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
return entry;
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
}
}
}