49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
|
=== tests/cases/conformance/externalModules/test/foo_3.ts ===
|
||
|
import foo0 = require('../foo_0');
|
||
|
>foo0 : typeof "tests/cases/conformance/externalModules/foo_0"
|
||
|
|
||
|
import foo1 = require('./test/foo_1');
|
||
|
>foo1 : typeof "tests/cases/conformance/externalModules/test/test/foo_1"
|
||
|
|
||
|
import foo2 = require('./.././test/foo_2');
|
||
|
>foo2 : typeof "tests/cases/conformance/externalModules/test/foo_2"
|
||
|
|
||
|
if(foo2.M2.x){
|
||
|
>foo2.M2.x : boolean
|
||
|
>foo2.M2 : typeof M2
|
||
|
>foo2 : typeof "tests/cases/conformance/externalModules/test/foo_2"
|
||
|
>M2 : typeof M2
|
||
|
>x : boolean
|
||
|
|
||
|
var x = foo0.foo + foo1.f();
|
||
|
>x : number
|
||
|
>foo0.foo + foo1.f() : number
|
||
|
>foo0.foo : number
|
||
|
>foo0 : typeof "tests/cases/conformance/externalModules/foo_0"
|
||
|
>foo : number
|
||
|
>foo1.f() : number
|
||
|
>foo1.f : () => number
|
||
|
>foo1 : typeof "tests/cases/conformance/externalModules/test/test/foo_1"
|
||
|
>f : () => number
|
||
|
}
|
||
|
|
||
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
||
|
export var foo = 42;
|
||
|
>foo : number
|
||
|
|
||
|
=== tests/cases/conformance/externalModules/test/test/foo_1.ts ===
|
||
|
export function f(){
|
||
|
>f : () => number
|
||
|
|
||
|
return 42;
|
||
|
}
|
||
|
|
||
|
=== tests/cases/conformance/externalModules/test/foo_2.ts ===
|
||
|
export module M2 {
|
||
|
>M2 : typeof M2
|
||
|
|
||
|
export var x = true;
|
||
|
>x : boolean
|
||
|
}
|
||
|
|