File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ import {
480
480
isClassDeclaration,
481
481
isClassElement,
482
482
isClassExpression,
483
- isClassFieldAndNotAutoAccessor ,
483
+ isClassInstanceProperty ,
484
484
isClassLike,
485
485
isClassStaticBlockDeclaration,
486
486
isCommaSequence,
@@ -31893,7 +31893,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
31893
31893
}
31894
31894
// A class field cannot be accessed via super.* from a derived class.
31895
31895
// 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 )) {
31897
31897
if (errorNode) {
31898
31898
error(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
31899
31899
}
Original file line number Diff line number Diff line change @@ -1709,7 +1709,7 @@ export function isAutoAccessorPropertyDeclaration(node: Node): node is AutoAcces
1709
1709
}
1710
1710
1711
1711
/** @internal */
1712
- export function isClassFieldAndNotAutoAccessor ( node : Declaration ) : boolean {
1712
+ export function isClassInstanceProperty ( node : Declaration ) : boolean {
1713
1713
if ( isInJSFile ( node ) && isExpandoPropertyDeclaration ( node ) ) {
1714
1714
return ( ! isBindableStaticAccessExpression ( node ) || ! isPrototypeAccess ( node . expression ) ) && ! isBindableStaticNameExpression ( node , /*excludeThisKeyword*/ true ) ;
1715
1715
}
You can’t perform that action at this time.
0 commit comments