47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
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'.
|
|
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'.
|
|
|
|
|
|
==== tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts (4 errors) ====
|
|
module A {
|
|
export class Point {
|
|
~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Point'.
|
|
x: number;
|
|
y: number;
|
|
}
|
|
}
|
|
|
|
module A{
|
|
// expected error
|
|
export class Point {
|
|
~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Point'.
|
|
origin: number;
|
|
angle: number;
|
|
}
|
|
}
|
|
|
|
module X.Y.Z {
|
|
export class Line {
|
|
~~~~
|
|
!!! error TS2300: Duplicate identifier 'Line'.
|
|
length: number;
|
|
}
|
|
}
|
|
|
|
module X {
|
|
export module Y {
|
|
export module Z {
|
|
// expected error
|
|
export class Line {
|
|
~~~~
|
|
!!! error TS2300: Duplicate identifier 'Line'.
|
|
name: string;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|