16 lines
No EOL
508 B
Text
16 lines
No EOL
508 B
Text
==== tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts (2 errors) ====
|
|
class a {
|
|
static get x(): () => string {
|
|
~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
return null;;
|
|
}
|
|
static set x(aValue: () => string) {
|
|
~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
}
|
|
}
|
|
|
|
class b extends a {
|
|
static x: () => string;
|
|
} |