From dbc1f4996d8b9e695a9fc88d423f342476f00cb4 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 26 Jun 2025 22:36:34 -0700 Subject: [PATCH] Port #61955 --- internal/checker/checker.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/checker/checker.go b/internal/checker/checker.go index bdb84cb488..51f0027493 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -8535,6 +8535,13 @@ func (c *Checker) resolveCall(node *ast.Node, signatures []*Signature, candidate if candidatesOutArray != nil { *candidatesOutArray = s.candidates } + + if len(s.candidates) == 0 { + // In Strada we would error here, but no known repro doesn't have at least + // one other error in this codepath. Just return instead. See #54442 + return c.unknownSignature + } + s.args = c.getEffectiveCallArguments(node) // The excludeArgument array contains true for each context sensitive argument (an argument // is context sensitive it is susceptible to a one-time permanent contextual typing).