We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0534f9a commit b9b6f8fCopy full SHA for b9b6f8f
src/compiler/checker.ts
@@ -16123,7 +16123,7 @@ namespace ts {
16123
const constraint = getConstraintOfTypeParameter(inference.typeParameter);
16124
if (constraint) {
16125
const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper);
16126
- const isCompletionContext = contextFlags && ((contextFlags | ContextFlags.Completion) === contextFlags);
+ const isCompletionContext = contextFlags && (contextFlags & ContextFlags.Completion);
16127
if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType)) || isCompletionContext) {
16128
inference.inferredType = inferredType = instantiatedConstraint;
16129
}
0 commit comments