2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts ===
|
|
|
|
class Point {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Point : Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor(public x: number, public y: number) { }
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : number
|
|
|
|
>y : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
2015-04-16 01:44:20 +02:00
|
|
|
>Origin : Point
|
|
|
|
>Point : Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>{ x: 0, y: 0 } : { x: number; y: number; }
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-16 01:44:20 +02:00
|
|
|
>y : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module Point {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Point : typeof Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var Origin = ""; // not an error, since not exported
|
2015-04-16 01:44:20 +02:00
|
|
|
>Origin : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module A {
|
2015-04-16 01:44:20 +02:00
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class Point {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Point : Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor(public x: number, public y: number) { }
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : number
|
|
|
|
>y : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
2015-04-16 01:44:20 +02:00
|
|
|
>Origin : Point
|
|
|
|
>Point : Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>{ x: 0, y: 0 } : { x: number; y: number; }
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-16 01:44:20 +02:00
|
|
|
>y : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export module Point {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Point : typeof Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var Origin = ""; // not an error since not exported
|
2015-04-16 01:44:20 +02:00
|
|
|
>Origin : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|