TypeScript/tests/baselines/reference/amdImportAsPrimaryExpression.types

27 lines
502 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/externalModules/foo_1.ts ===
import foo = require("./foo_0");
>foo : typeof foo
2014-08-15 23:33:16 +02:00
if(foo.E1.A === 0){
>foo.E1.A === 0 : boolean
>foo.E1.A : foo.E1
>foo.E1 : typeof foo.E1
>foo : typeof foo
>E1 : typeof foo.E1
>A : foo.E1
2015-04-13 21:36:11 +02:00
>0 : number
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
2014-08-15 23:33:16 +02:00
A,B,C
>A : E1
>B : E1
>C : E1
2014-08-15 23:33:16 +02:00
}