fix(ts): allow abstract methods with export default abstract class (#12748)

This commit is contained in:
Federico Ciardi
2021-02-03 15:48:41 +01:00
committed by GitHub
parent 7fb6048e7c
commit 94ba66c89b
3 changed files with 85 additions and 30 deletions

View File

@@ -2085,8 +2085,8 @@ export default (superClass: Class<Parser>): Class<Parser> =>
if (this.isAbstractClass()) {
const cls = this.startNode();
this.next(); // Skip "abstract"
this.parseClass(cls, true, true);
cls.abstract = true;
this.parseClass(cls, true, true);
return cls;
}