Closed
Description
TypeScript Version: master, commit 1418fd1
Are abstract getters/setters allowed to have an implementation?
Related: #7184
Code
abstract class A {
private _a: string;
abstract get a(): string {
return this._a;
}
abstract set a(newName: string) {
this._a = newName;
}
}
Expected behavior:
Error on get
and set
that abstract getters/setters shouldn't have an implementation.
Actual behavior:
No error.