Skip to content

Commit 4c5d4c1

Browse files
committed
Remove unintentional change
1 parent 01789d3 commit 4c5d4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30080,7 +30080,7 @@ namespace ts {
3008030080

3008130081
// Instantiate a generic signature in the context of a non-generic signature (section 3.8.5 in TypeScript spec)
3008230082
function instantiateSignatureInContextOf(signature: Signature, contextualSignature: Signature, inferenceContext?: InferenceContext, compareTypes?: TypeComparer): Signature {
30083-
const context = createInferenceContext(signature.typeParameters!, signature, inferenceContext?.flags ?? InferenceFlags.None, compareTypes);
30083+
const context = createInferenceContext(signature.typeParameters!, signature, InferenceFlags.None, compareTypes);
3008430084
// We clone the inferenceContext to avoid fixing. For example, when the source signature is <T>(x: T) => T[] and
3008530085
// the contextual signature is (...args: A) => B, we want to infer the element type of A's constraint (say 'any')
3008630086
// for T but leave it possible to later infer '[any]' back to A.

0 commit comments

Comments
 (0)