20 lines
601 B
Plaintext
20 lines
601 B
Plaintext
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
/// <reference path="foo_0.ts"/>
|
|
import foo = require("foo");
|
|
>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
|
|
var z = foo.x + 10;
|
|
>z : number, Symbol(z, Decl(foo_1.ts, 2, 3))
|
|
>foo.x + 10 : number
|
|
>foo.x : number, Symbol(foo.x, Decl(foo_0.ts, 1, 11))
|
|
>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>x : number, Symbol(foo.x, Decl(foo_0.ts, 1, 11))
|
|
>10 : number
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
declare module "foo" {
|
|
export var x: number;
|
|
>x : number, Symbol(x, Decl(foo_0.ts, 1, 11))
|
|
}
|
|
|