2014-10-28 08:28:59 +01:00
tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts(7,7): error TS2417: Class static side 'typeof b' incorrectly extends base class static side 'typeof a'.
Types of property 'x' are incompatible.
2014-09-12 22:35:07 +02:00
Type 'string' is not assignable to type '() => string'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts (1 errors) ====
class a {
static x() {
return "20";
}
}
class b extends a {
~
2014-10-28 08:28:59 +01:00
!!! error TS2417: Class static side 'typeof b' incorrectly extends base class static side 'typeof a'.
!!! error TS2417: Types of property 'x' are incompatible.
!!! error TS2417: Type 'string' is not assignable to type '() => string'.
2014-07-13 01:04:16 +02:00
static x: string;
}