File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ import {
480480 isClassDeclaration,
481481 isClassElement,
482482 isClassExpression,
483- isClassFieldAndNotAutoAccessor ,
483+ isClassInstanceProperty ,
484484 isClassLike,
485485 isClassStaticBlockDeclaration,
486486 isCommaSequence,
@@ -31893,7 +31893,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3189331893 }
3189431894 // A class field cannot be accessed via super.* from a derived class.
3189531895 // This is true for both [[Set]] (old) and [[Define]] (ES spec) semantics.
31896- if (!(flags & ModifierFlags.Static) && prop.declarations?.some(isClassFieldAndNotAutoAccessor )) {
31896+ if (!(flags & ModifierFlags.Static) && prop.declarations?.some(isClassInstanceProperty )) {
3189731897 if (errorNode) {
3189831898 error(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
3189931899 }
Original file line number Diff line number Diff line change @@ -1709,7 +1709,7 @@ export function isAutoAccessorPropertyDeclaration(node: Node): node is AutoAcces
17091709}
17101710
17111711/** @internal */
1712- export function isClassFieldAndNotAutoAccessor ( node : Declaration ) : boolean {
1712+ export function isClassInstanceProperty ( node : Declaration ) : boolean {
17131713 if ( isInJSFile ( node ) && isExpandoPropertyDeclaration ( node ) ) {
17141714 return ( ! isBindableStaticAccessExpression ( node ) || ! isPrototypeAccess ( node . expression ) ) && ! isBindableStaticNameExpression ( node , /*excludeThisKeyword*/ true ) ;
17151715 }
You can’t perform that action at this time.
0 commit comments