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 3ac002b
Browse filesBrowse the repository at this point in the historyBrowse files
Carry the assigned call's declared return type for by-ref closure uses
`$x = $this->foo(function () use (&$x) {...})` types the by-ref use from
the call being assigned - a forward reference read from inside the call's
own arguments, which priced the enclosing call on demand (a nested walk
of the closure itself). The call handlers now hand the context the
declared return type of the acceptor the call was normalized with
(template types resolved to their bounds) before processing the
arguments, and the by-ref use reads it; a closure right side still
resolves through the closure type resolver.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R7pqAkCx4xP6WYxBo2nMJE
0 commit comments