37 lines
890 B
Plaintext
37 lines
890 B
Plaintext
|
==== tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts (2 errors) ====
|
||
|
module A {
|
||
|
export class Point {
|
||
|
x: number;
|
||
|
y: number;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module A{
|
||
|
// expected error
|
||
|
export class Point {
|
||
|
~~~~~
|
||
|
!!! Duplicate identifier 'Point'.
|
||
|
origin: number;
|
||
|
angle: number;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module X.Y.Z {
|
||
|
export class Line {
|
||
|
length: number;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module X {
|
||
|
export module Y {
|
||
|
export module Z {
|
||
|
// expected error
|
||
|
export class Line {
|
||
|
~~~~
|
||
|
!!! Duplicate identifier 'Line'.
|
||
|
name: string;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|