TypeScript/tests/baselines/reference/topLevelAmbientModule.symbols
2015-04-15 16:44:20 -07:00

18 lines
509 B
Plaintext

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