diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 4cdd0531b1c..83f5a913596 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -34198,7 +34198,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & ModifierFlags.Static) - && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop)) ) { diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); }