2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts ===
|
|
|
|
declare module A {
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export module Point {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var Origin: {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Origin : { x: number; y: number; }, Symbol(Origin, Decl(module.d.ts, 2, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(module.d.ts, 2, 28))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : number, Symbol(y, Decl(module.d.ts, 3, 22))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/class.d.ts ===
|
|
|
|
declare module A {
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class Point {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Point : Point, Symbol(Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor(x: number, y: number);
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(class.d.ts, 2, 20))
|
|
|
|
>y : number, Symbol(y, Decl(class.d.ts, 2, 30))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(class.d.ts, 2, 42))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : number, Symbol(y, Decl(class.d.ts, 3, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/test.ts ===
|
|
|
|
var p: { x: number; y: number; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
|
|
|
|
>x : number, Symbol(x, Decl(test.ts, 0, 8))
|
|
|
|
>y : number, Symbol(y, Decl(test.ts, 0, 19))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p = A.Point.Origin;
|
2015-04-13 23:01:57 +02:00
|
|
|
>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
|
|
|
|
>A.Point.Origin : { x: number; y: number; }, Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18))
|
|
|
|
>A.Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
|
|
|
|
>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
|
|
|
|
>Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
|
|
|
|
>Origin : { x: number; y: number; }, Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p = new A.Point(0, 0); // unexpected error here, bug 840000
|
2015-04-13 23:01:57 +02:00
|
|
|
>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
|
2014-08-25 19:36:12 +02:00
|
|
|
>new A.Point(0, 0) : A.Point
|
2015-04-13 23:01:57 +02:00
|
|
|
>A.Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
|
|
|
|
>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
|
|
|
|
>Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|