TypeScript/tests/baselines/reference/systemModule15.types
Wesley Wigham ceaeffa3ab
Fix declaration emit for imported export alias specifiers (#19852)
* Badness

* Revert #3641, whose original bug has been fixed by other means

* Add another repro
2017-11-08 18:44:46 -08:00

66 lines
1.3 KiB
Text

=== tests/cases/compiler/file1.ts ===
import * as moduleB from "./file2"
>moduleB : typeof moduleB
declare function use(v: any): void;
>use : (v: any) => void
>v : any
use(moduleB.value);
>use(moduleB.value) : void
>use : (v: any) => void
>moduleB.value : string
>moduleB : typeof moduleB
>value : string
use(moduleB.moduleC);
>use(moduleB.moduleC) : void
>use : (v: any) => void
>moduleB.moduleC : string
>moduleB : typeof moduleB
>moduleC : string
use(moduleB.moduleCStar);
>use(moduleB.moduleCStar) : void
>use : (v: any) => void
>moduleB.moduleCStar : typeof moduleB.moduleCStar
>moduleB : typeof moduleB
>moduleCStar : typeof moduleB.moduleCStar
=== tests/cases/compiler/file2.ts ===
import * as moduleCStar from "./file3"
>moduleCStar : typeof moduleCStar
import {value2} from "./file4"
>value2 : string
import moduleC from "./file3"
>moduleC : string
import {value} from "./file3"
>value : string
export {
moduleCStar,
>moduleCStar : typeof moduleCStar
moduleC,
>moduleC : string
value
>value : string
}
=== tests/cases/compiler/file3.ts ===
export var value = "youpi";
>value : string
>"youpi" : "youpi"
export default value;
>value : string
=== tests/cases/compiler/file4.ts ===
export var value2 = "v";
>value2 : string
>"v" : "v"