27 lines
458 B
Text
27 lines
458 B
Text
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
import foo = require("./foo_0");
|
|
>foo : typeof foo
|
|
|
|
if(foo.C1.s1){
|
|
>foo.C1.s1 : boolean
|
|
>foo.C1 : typeof foo.C1
|
|
>foo : typeof foo
|
|
>C1 : typeof foo.C1
|
|
>s1 : boolean
|
|
|
|
// Should cause runtime import
|
|
}
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
export class C1 {
|
|
>C1 : C1
|
|
|
|
m1 = 42;
|
|
>m1 : number
|
|
>42 : number
|
|
|
|
static s1 = true;
|
|
>s1 : boolean
|
|
>true : boolean
|
|
}
|
|
|