@@ -16625,7 +16625,7 @@ namespace ts {
1662516625
1662616626 function checkThisBeforeSuper(node: Node, container: Node, diagnosticMessage: DiagnosticMessage) {
1662716627 const containingClassDecl = <ClassDeclaration>container.parent;
16628- const baseTypeNode = getEffectiveBaseTypeNode (containingClassDecl);
16628+ const baseTypeNode = getClassExtendsHeritageElement (containingClassDecl);
1662916629
1663016630 // If a containing class does not have extends clause or the class extends null
1663116631 // skip checking whether super statement is called before "this" accessing.
@@ -16974,7 +16974,7 @@ namespace ts {
1697416974
1697516975 // at this point the only legal case for parent is ClassLikeDeclaration
1697616976 const classLikeDeclaration = <ClassLikeDeclaration>container.parent;
16977- if (!getEffectiveBaseTypeNode (classLikeDeclaration)) {
16977+ if (!getClassExtendsHeritageElement (classLikeDeclaration)) {
1697816978 error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class);
1697916979 return errorType;
1698016980 }
@@ -23575,7 +23575,7 @@ namespace ts {
2357523575 // Constructors of classes with no extends clause may not contain super calls, whereas
2357623576 // constructors of derived classes must contain at least one super call somewhere in their function body.
2357723577 const containingClassDecl = <ClassDeclaration>node.parent;
23578- if (getEffectiveBaseTypeNode (containingClassDecl)) {
23578+ if (getClassExtendsHeritageElement (containingClassDecl)) {
2357923579 captureLexicalThis(node.parent, containingClassDecl);
2358023580 const classExtendsNull = classDeclarationExtendsNull(containingClassDecl);
2358123581 const superCall = getSuperCallInConstructor(node);
0 commit comments