TypeScript/tests/baselines/reference/propertyAndFunctionWithSameName.errors.txt
2014-09-11 16:11:08 -07:00

16 lines
401 B
Plaintext

==== tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts (2 errors) ====
class C {
x: number;
x() { // error
~
!!! error TS2300: Duplicate identifier 'x'.
return 1;
}
}
class D {
x: number;
x(v) { } // error
~
!!! error TS2300: Duplicate identifier 'x'.
}