mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix js declaration emit for inherited and this-typed inherited fields (#37970)
This commit is contained in:
@@ -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() { }
|
||||
}
|
||||
Reference in New Issue
Block a user