TypeScript/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.errors.txt

37 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(4,12): error TS2300: Duplicate identifier 'Origin'.
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(8,16): error TS2300: Duplicate identifier 'Origin'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(16,16): error TS2300: Duplicate identifier 'Origin'.
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(20,20): error TS2300: Duplicate identifier 'Origin'.
2014-10-01 02:15:18 +02:00
==== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts (4 errors) ====
2014-07-13 01:04:16 +02:00
class Point {
constructor(public x: number, public y: number) { }
static Origin: Point = { x: 0, y: 0 };
2014-10-01 02:15:18 +02:00
~~~~~~
!!! error TS2300: Duplicate identifier 'Origin'.
2014-07-13 01:04:16 +02:00
}
module Point {
export var Origin = ""; //expected duplicate identifier error
~~~~~~
!!! error TS2300: Duplicate identifier 'Origin'.
2014-07-13 01:04:16 +02:00
}
module A {
export class Point {
constructor(public x: number, public y: number) { }
static Origin: Point = { x: 0, y: 0 };
2014-10-01 02:15:18 +02:00
~~~~~~
!!! error TS2300: Duplicate identifier 'Origin'.
2014-07-13 01:04:16 +02:00
}
export module Point {
export var Origin = ""; //expected duplicate identifier error
~~~~~~
!!! error TS2300: Duplicate identifier 'Origin'.
2014-07-13 01:04:16 +02:00
}
}