17 lines
No EOL
452 B
Text
17 lines
No EOL
452 B
Text
==== tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts (2 errors) ====
|
|
class a {
|
|
x: string;
|
|
}
|
|
|
|
class b extends a {
|
|
get x() {
|
|
~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
return "20";
|
|
}
|
|
set x(aValue: string) {
|
|
~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
}
|
|
} |