TypeScript/tests/baselines/reference/exportAssignmentMergedInterface.types

74 lines
2.1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/externalModules/foo_1.ts ===
import foo = require("./foo_0");
2015-04-13 23:01:57 +02:00
>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var x: foo;
2015-04-13 23:01:57 +02:00
>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3))
>foo : foo, Symbol(foo, Decl(foo_1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
x("test");
>x("test") : void
2015-04-13 23:01:57 +02:00
>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3))
2015-04-13 21:36:11 +02:00
>"test" : string
2014-08-15 23:33:16 +02:00
x(42);
>x(42) : number
2015-04-13 23:01:57 +02:00
>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3))
2015-04-13 21:36:11 +02:00
>42 : number
2014-08-15 23:33:16 +02:00
var y: string = x.b;
2015-04-13 23:01:57 +02:00
>y : string, Symbol(y, Decl(foo_1.ts, 4, 3))
>x.b : string, Symbol(foo.b, Decl(foo_0.ts, 1, 19))
>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3))
>b : string, Symbol(foo.b, Decl(foo_0.ts, 1, 19))
2014-08-15 23:33:16 +02:00
if(!!x.c){ }
>!!x.c : boolean
>!x.c : boolean
2015-04-13 23:01:57 +02:00
>x.c : boolean, Symbol(foo.c, Decl(foo_0.ts, 5, 21))
>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3))
>c : boolean, Symbol(foo.c, Decl(foo_0.ts, 5, 21))
2014-08-15 23:33:16 +02:00
var z = {x: 1, y: 2};
2015-04-13 23:01:57 +02:00
>z : { x: number; y: number; }, Symbol(z, Decl(foo_1.ts, 6, 3))
2014-08-15 23:33:16 +02:00
>{x: 1, y: 2} : { x: number; y: number; }
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(foo_1.ts, 6, 9))
2015-04-13 21:36:11 +02:00
>1 : number
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(foo_1.ts, 6, 14))
2015-04-13 21:36:11 +02:00
>2 : number
2014-08-15 23:33:16 +02:00
z = x.d;
>z = x.d : { x: number; y: number; }
2015-04-13 23:01:57 +02:00
>z : { x: number; y: number; }, Symbol(z, Decl(foo_1.ts, 6, 3))
>x.d : { x: number; y: number; }, Symbol(foo.d, Decl(foo_0.ts, 6, 12))
>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3))
>d : { x: number; y: number; }, Symbol(foo.d, Decl(foo_0.ts, 6, 12))
2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/externalModules/foo_0.ts ===
interface Foo {
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 3, 1))
2014-08-15 23:33:16 +02:00
(a: string): void;
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(foo_0.ts, 1, 2))
2014-08-15 23:33:16 +02:00
b: string;
2015-04-13 23:01:57 +02:00
>b : string, Symbol(b, Decl(foo_0.ts, 1, 19))
2014-08-15 23:33:16 +02:00
}
interface Foo {
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 3, 1))
2014-08-15 23:33:16 +02:00
(a: number): number;
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(foo_0.ts, 5, 2))
2014-08-15 23:33:16 +02:00
c: boolean;
2015-04-13 23:01:57 +02:00
>c : boolean, Symbol(c, Decl(foo_0.ts, 5, 21))
2014-08-15 23:33:16 +02:00
d: {x: number; y: number};
2015-04-13 23:01:57 +02:00
>d : { x: number; y: number; }, Symbol(d, Decl(foo_0.ts, 6, 12))
>x : number, Symbol(x, Decl(foo_0.ts, 7, 5))
>y : number, Symbol(y, Decl(foo_0.ts, 7, 15))
2014-08-15 23:33:16 +02:00
}
export = Foo;
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 3, 1))
2014-08-15 23:33:16 +02:00