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

36 lines
516 B
Plaintext

=== tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts ===
export module a {
export module b {
export interface I {
foo();
>foo : () => any
}
}
}
export module c {
>c : typeof c
import b = a.b;
>b : any
>a : any
>b : any
export var x: b.I;
>x : b.I
>b : any
x.foo();
>x.foo() : any
>x.foo : () => any
>x : b.I
>foo : () => any
}
export var z: c.b.I;
>z : c.b.I
>c : any
>b : any