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

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-04-27 03:31:47 +02:00
tests/cases/conformance/internalModules/moduleDeclarations/invalidNestedModules.ts(1,12): error TS2434: A namespace 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'.
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
~
2015-04-27 03:31:47 +02:00
!!! error TS2434: A namespace 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
~~~~~
!!! error TS2300: Duplicate identifier 'Point'.
2014-07-13 01:04:16 +02:00
}
}