27 lines
No EOL
1 KiB
Text
27 lines
No EOL
1 KiB
Text
tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts(2,18): error TS2300: Duplicate identifier 'Point'.
|
|
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'.
|
|
|
|
|
|
==== tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts (3 errors) ====
|
|
module M {
|
|
export class Point { x: number; y: number }
|
|
~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Point'.
|
|
export var Point = 1; // Error
|
|
~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Point'.
|
|
}
|
|
|
|
module M2 {
|
|
export interface Point { x: number; y: number }
|
|
export var Point = 1;
|
|
}
|
|
|
|
var m = M2;
|
|
var p: m.Point; // Error
|
|
~~~~~~~
|
|
!!! error TS2304: Cannot find name 'm'.
|
|
|
|
|
|
|