12 lines
No EOL
331 B
Text
12 lines
No EOL
331 B
Text
==== tests/cases/compiler/returnValueInSetter.ts (2 errors) ====
|
|
class f {
|
|
set x(value) {
|
|
~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
return null; // Should be an error
|
|
~~~~
|
|
!!! Setters cannot return a value.
|
|
}
|
|
}
|
|
|
|
|