TypeScript/tests/baselines/reference/commonJSImportAsPrimaryExpression.types

26 lines
427 B
Text
Raw Normal View History

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.C1.s1){
>foo.C1.s1 : boolean
2014-08-25 19:36:12 +02:00
>foo.C1 : typeof foo.C1
>foo : typeof foo
>C1 : typeof foo.C1
2014-08-15 23:33:16 +02:00
>s1 : boolean
// Should cause runtime import
}
=== tests/cases/conformance/externalModules/foo_0.ts ===
export class C1 {
>C1 : C1
m1 = 42;
>m1 : number
static s1 = true;
>s1 : boolean
}