TypeScript/tests/baselines/reference/returnValueInSetter.errors.txt
2014-07-12 17:30:19 -07:00

12 lines
331 B
Plaintext

==== 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.
}
}