TypeScript/tests/baselines/reference/propertyAndFunctionWithSameName.errors.txt
2014-09-12 13:35:07 -07:00

20 lines
No EOL
688 B
Text

tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts(3,5): error TS2300: Duplicate identifier 'x'.
tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts(10,5): error TS2300: Duplicate identifier 'x'.
==== 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'.
}