a734b84ed0
Even for types. Based on #42126, but without the namespace-specific error message.
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
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 TS2552: Cannot find name 'm'. Did you mean '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 TS2552: Cannot find name 'm'. Did you mean 'M'?
|
|
!!! related TS2728 tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedModule.ts:1:8: 'M' is declared here.
|
|
|
|
|
|
|