20 lines
No EOL
688 B
Text
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'.
|
|
} |