19 lines
388 B
Text
19 lines
388 B
Text
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
/// <reference path="foo_0.ts"/>
|
|
import foo = require("foo");
|
|
>foo : typeof foo
|
|
|
|
var z = foo.x + 10;
|
|
>z : number
|
|
>foo.x + 10 : number
|
|
>foo.x : number
|
|
>foo : typeof foo
|
|
>x : number
|
|
>10 : number
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
declare module "foo" {
|
|
export var x: number;
|
|
>x : number
|
|
}
|
|
|