You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6b862e
Browse filesBrowse the repository at this point in the historyBrowse files
Walk an immediately invoked closure's arguments before the callee
An immediately invoked closure's untyped parameters take the types of
its invocation arguments, which the closure type resolver read from the
scope ahead of their walk - the last processSyntheticOnDemand() seam
under the new-world guard (and, for the pipe operator, the callee was
evaluated before its operand, unlike PHP).
The call handler now walks the arguments first, on the closure's
declared signature (ClosureTypeResolver::getDeclaredClosureType(), the
signature without invocation inference or a body walk), then the
closure, whose parameter inference consumes the stored argument results;
the call resolves from the walked closure's acceptor over the same
processed arguments (ArgsResult::withResolvedParametersAcceptor()). The
closure is thereby walked on the post-argument scope: a by-value use of
a variable an argument assigns sees the assigned value.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R7pqAkCx4xP6WYxBo2nMJE
0 commit comments