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

47 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts(2,18): error TS2300: Duplicate identifier 'Point'.
tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts(10,18): error TS2300: Duplicate identifier 'Point'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts(17,18): error TS2300: Duplicate identifier 'Line'.
tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts(26,26): error TS2300: Duplicate identifier 'Line'.
2014-10-01 02:15:18 +02:00
==== tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts (4 errors) ====
2014-07-13 01:04:16 +02:00
module A {
export class Point {
2014-10-01 02:15:18 +02:00
~~~~~
!!! error TS2300: Duplicate identifier 'Point'.
2014-07-13 01:04:16 +02:00
x: number;
y: number;
}
}
module A{
// expected error
export class Point {
~~~~~
!!! error TS2300: Duplicate identifier 'Point'.
2014-07-13 01:04:16 +02:00
origin: number;
angle: number;
}
}
module X.Y.Z {
export class Line {
2014-10-01 02:15:18 +02:00
~~~~
!!! error TS2300: Duplicate identifier 'Line'.
2014-07-13 01:04:16 +02:00
length: number;
}
}
module X {
export module Y {
export module Z {
// expected error
export class Line {
~~~~
!!! error TS2300: Duplicate identifier 'Line'.
2014-07-13 01:04:16 +02:00
name: string;
}
}
}
}