TypeScript/tests/cases/compiler/returnValueInSetter.ts

7 lines
87 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
class f {
set x(value) {
return null; // Should be an error
}
}