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

15 lines
366 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/classDeclarations/classAndVariableWithSameName.ts (2 errors) ====
class C { foo: string; }
var C = ''; // error
~
!!! Duplicate identifier 'C'.
module M {
class D {
bar: string;
}
var D = 1; // error
~
!!! Duplicate identifier 'D'.
}