2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
|
|
import foo = require("./foo_0");
|
2014-08-28 21:40:58 +02:00
|
|
|
>foo : typeof foo
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
if(foo.E1.A === 0){
|
|
|
|
>foo.E1.A === 0 : boolean
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo.E1.A : foo.E1
|
|
|
|
>foo.E1 : typeof foo.E1
|
|
|
|
>foo : typeof foo
|
|
|
|
>E1 : typeof foo.E1
|
|
|
|
>A : foo.E1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// Should cause runtime import - interesting optimization possibility, as gets inlined to 0.
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
|
|
export enum E1 {
|
|
|
|
>E1 : E1
|
|
|
|
|
|
|
|
A,B,C
|
|
|
|
>A : E1
|
|
|
|
>B : E1
|
|
|
|
>C : E1
|
|
|
|
}
|
|
|
|
|