mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
557 B
Plaintext
22 lines
557 B
Plaintext
//// [tests/cases/conformance/externalModules/topLevelAmbientModule.ts] ////
|
|
|
|
=== 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))
|
|
|
|
=== foo_0.ts ===
|
|
declare module "foo" {
|
|
>"foo" : Symbol("foo", Decl(foo_0.ts, 0, 0))
|
|
|
|
export var x: number;
|
|
>x : Symbol(x, Decl(foo_0.ts, 1, 11))
|
|
}
|
|
|