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

25 lines
365 B
Plaintext

=== tests/cases/compiler/moduleNewExportBug.ts ===
module mod1 {
>mod1 : typeof mod1
interface mInt {
new (bar:any):any;
>bar : any
foo (bar:any):any;
>foo : (bar: any) => any
>bar : any
}
class C { public moo() {}}
>C : C
>moo : () => void
}
var c : mod1.C; // ERROR: C should not be visible
>c : mod1.C
>mod1 : any