17 lines
363 B
Text
17 lines
363 B
Text
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
import foo = require('./test/foo_0');
|
|
>foo : typeof foo
|
|
|
|
var x = foo.foo + 42;
|
|
>x : number
|
|
>foo.foo + 42 : number
|
|
>foo.foo : number
|
|
>foo : typeof foo
|
|
>foo : number
|
|
>42 : number
|
|
|
|
=== tests/cases/conformance/externalModules/test/foo_0.ts ===
|
|
export var foo = 42;
|
|
>foo : number
|
|
>42 : number
|
|
|