Skip to content

Commit a554bbf

Browse files
committed
change condition for indexes gathering
1 parent 20d6feb commit a554bbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26902,7 +26902,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2690226902
if (getObjectFlags(source) & ObjectFlags.NonInferrableType || source === nonInferrableAnyType) {
2690326903
return;
2690426904
}
26905-
if (!inference.isFixed) {
26905+
if (!hasInferenceCandidates(inference)) {
2690626906
const partialInferenceTypeSymbol = getGlobalPartialInferenceSymbol();
2690726907
if (partialInferenceTypeSymbol) {
2690826908
if ((target as IndexedAccessType).indexType.flags & TypeFlags.Instantiable) {

0 commit comments

Comments
 (0)