a4f9bf0fce
* 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
37 lines
594 B
Plaintext
37 lines
594 B
Plaintext
=== tests/cases/compiler/importedModuleAddToGlobal.ts ===
|
|
// Binding for an import statement in a typeref position is being added to the global scope
|
|
// Shouldn't compile b.B is not defined in C
|
|
module A {
|
|
import b = B;
|
|
>b : typeof b
|
|
>B : typeof b
|
|
|
|
import c = C;
|
|
>c : typeof c
|
|
>C : typeof c
|
|
}
|
|
|
|
module B {
|
|
>B : typeof globalThis.B
|
|
|
|
import a = A;
|
|
>a : any
|
|
>A : any
|
|
|
|
export class B { }
|
|
>B : B
|
|
}
|
|
|
|
module C {
|
|
>C : typeof C
|
|
|
|
import a = A;
|
|
>a : any
|
|
>A : any
|
|
|
|
function hello(): b.B { return null; }
|
|
>hello : () => b.B
|
|
>b : any
|
|
>null : null
|
|
}
|