17 lines
564 B
Text
17 lines
564 B
Text
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
import foo = require('./test/foo_0');
|
|
>foo : typeof foo, Symbol(foo,Decl(foo_1.ts,0,0))
|
|
|
|
var x = foo.foo + 42;
|
|
>x : number, Symbol(x,Decl(foo_1.ts,1,3))
|
|
>foo.foo + 42 : number
|
|
>foo.foo : number, Symbol(foo.foo,Decl(foo_0.ts,0,10))
|
|
>foo : typeof foo, Symbol(foo,Decl(foo_1.ts,0,0))
|
|
>foo : number, Symbol(foo.foo,Decl(foo_0.ts,0,10))
|
|
>42 : number
|
|
|
|
=== tests/cases/conformance/externalModules/test/foo_0.ts ===
|
|
export var foo = 42;
|
|
>foo : number, Symbol(foo,Decl(foo_0.ts,0,10))
|
|
>42 : number
|
|
|