2014-09-12 22:35:07 +02:00
tests/cases/conformance/internalModules/moduleDeclarations/invalidNestedModules.ts(1,12): error TS2434: A module declaration cannot be located prior to a class or function with which it is merged
2014-10-01 02:15:18 +02:00
tests/cases/conformance/internalModules/moduleDeclarations/invalidNestedModules.ts(17,18): error TS2300: Duplicate identifier 'Point'.
2014-09-12 22:35:07 +02:00
tests/cases/conformance/internalModules/moduleDeclarations/invalidNestedModules.ts(24,20): error TS2300: Duplicate identifier 'Point'.
2014-10-01 02:15:18 +02:00
==== tests/cases/conformance/internalModules/moduleDeclarations/invalidNestedModules.ts (3 errors) ====
2014-07-13 01:04:16 +02:00
module A.B.C {
2014-07-17 01:15:10 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2434: A module declaration cannot be located prior to a class or function with which it is merged
2014-07-13 01:04:16 +02:00
export class Point {
x: number;
y: number;
}
}
module A {
export module B {
export class C { // Error
name: string;
}
}
}
module M2.X {
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 M2 {
export module X {
export var Point: number; // Error
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'Point'.
2014-07-13 01:04:16 +02:00
}
}