12 lines
No EOL
403 B
Text
12 lines
No EOL
403 B
Text
==== tests/cases/compiler/inheritanceStaticMembersIncompatible.ts (1 errors) ====
|
|
class a {
|
|
static x: string;
|
|
}
|
|
|
|
class b extends a {
|
|
~
|
|
!!! 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'.
|
|
static x: number;
|
|
} |