2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
|
|
/// <reference path="foo_0.ts"/>
|
|
|
|
import foo = require("foo");
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var z = foo.x + 10;
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : number, Symbol(z, Decl(foo_1.ts, 2, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo.x + 10 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>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))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
|
|
declare module "foo" {
|
|
|
|
export var x: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(foo_0.ts, 1, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|