TypeScript/tests/baselines/reference/genericFunduleInModule.types
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

30 lines
382 B
Plaintext

=== tests/cases/compiler/genericFunduleInModule.ts ===
module A {
>A : typeof A
export function B<T>(x: T) { return x; }
>B : typeof B
>x : T
>x : T
export module B {
>B : typeof B
export var x = 1;
>x : number
>1 : 1
}
}
var b: A.B;
>b : A.B
>A : any
A.B(1);
>A.B(1) : 1
>A.B : typeof A.B
>A : typeof A
>B : typeof A.B
>1 : 1