2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts(2,18): error TS2300: Duplicate identifier 'Point'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts(3,16): error TS2300: Duplicate identifier 'Point'.
|
|
|
|
tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts(12,8): error TS2304: Cannot find name 'm'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts (3 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
module M {
|
|
|
|
export class Point { x: number; y: number }
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'Point'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export var Point = 1; // Error
|
|
|
|
~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'Point'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
|
|
|
export interface Point { x: number; y: number }
|
|
|
|
export var Point = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
var m = M2;
|
|
|
|
var p: m.Point; // Error
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'm'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|