2014-09-12 22:35:07 +02:00
tests/cases/compiler/inheritanceStaticMembersIncompatible.ts(5,7): error TS2418: Class static side 'typeof b' incorrectly extends base class static side 'typeof a':
Types of property 'x' are incompatible:
Type 'number' is not assignable to type 'string'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/inheritanceStaticMembersIncompatible.ts (1 errors) ====
class a {
static x: string;
}
class b extends a {
~
2014-09-12 00:19:57 +02:00
!!! error TS2418: Class static side 'typeof b' incorrectly extends base class static side 'typeof a':
!!! error TS2418: Types of property 'x' are incompatible:
!!! error TS2418: Type 'number' is not assignable to type 'string'.
2014-07-13 01:04:16 +02:00
static x: number;
}