mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 02:15:10 -05:00
Always tack on a return statement for '_this' in derived classes.
This commit is contained in:
@@ -790,7 +790,7 @@ namespace ts {
|
||||
const body = saveStateAndInvoke(constructor, hasSynthesizedSuper ? transformConstructorBodyWithSynthesizedSuper : transformConstructorBodyWithoutSynthesizedSuper);
|
||||
addRange(statements, body);
|
||||
}
|
||||
if (constructor ? hasSynthesizedSuper : extendsClauseElement) {
|
||||
if (extendsClauseElement) {
|
||||
statements.push(
|
||||
createReturn(
|
||||
createIdentifier("_this")
|
||||
|
||||
Reference in New Issue
Block a user