12 lines
No EOL
351 B
Text
12 lines
No EOL
351 B
Text
==== tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts (1 errors) ====
|
|
class a {
|
|
x() {
|
|
return "20";
|
|
}
|
|
}
|
|
|
|
class b extends a {
|
|
x: () => string;
|
|
~
|
|
!!! Class 'a' defines instance member function 'x', but extended class 'b' defines it as instance member property.
|
|
} |