19 lines
No EOL
656 B
Text
19 lines
No EOL
656 B
Text
tests/cases/conformance/classes/classDeclarations/classAndVariableWithSameName.ts(2,5): error TS2300: Duplicate identifier 'C'.
|
|
tests/cases/conformance/classes/classDeclarations/classAndVariableWithSameName.ts(9,9): error TS2300: Duplicate identifier 'D'.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classAndVariableWithSameName.ts (2 errors) ====
|
|
class C { foo: string; }
|
|
var C = ''; // error
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
|
|
|
module M {
|
|
class D {
|
|
bar: string;
|
|
}
|
|
|
|
var D = 1; // error
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'D'.
|
|
} |