Skip to content

Commit d690e0d

Browse files
Port #61955 (microsoft#1303)
1 parent ff49e72 commit d690e0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/checker/checker.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8535,6 +8535,13 @@ func (c *Checker) resolveCall(node *ast.Node, signatures []*Signature, candidate
85358535
if candidatesOutArray != nil {
85368536
*candidatesOutArray = s.candidates
85378537
}
8538+
8539+
if len(s.candidates) == 0 {
8540+
// In Strada we would error here, but no known repro doesn't have at least
8541+
// one other error in this codepath. Just return instead. See #54442
8542+
return c.unknownSignature
8543+
}
8544+
85388545
s.args = c.getEffectiveCallArguments(node)
85398546
// The excludeArgument array contains true for each context sensitive argument (an argument
85408547
// is context sensitive it is susceptible to a one-time permanent contextual typing).

0 commit comments

Comments
 (0)