Fix js declaration emit for inherited and this-typed inherited fields (#37970)

This commit is contained in:
Wesley Wigham
2020-04-21 13:13:50 -07:00
committed by GitHub
parent 6ea291a142
commit 136f728bb0
7 changed files with 142 additions and 6 deletions
@@ -0,0 +1,17 @@
// @allowJs: true
// @checkJs: true
// @outDir: /out
// @lib: es6
// @declaration: true
// @filename: index.js
export class A {
/** @returns {this} */
method() {
return this;
}
}
export default class Base extends A {
// This method is required to reproduce #35932
verify() { }
}