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
Move analysis of function signature to the first phase (#5461)
Fixes#5454.
This fixes a few similar overload crash scenarios.
The idea is quite simple: previously during first phase of function analysis
we only set the full name and added it to locals, while during the second
phase we analysed the signature and the function body. This however
doesn't work with overloads, since we want to collect all item types into a
single `Overloaded(...)`. What I propose is to just move analysis of signature
and the initialisers to the first phase. IMO this is more logical (we just want to
postpone the bodies), and is more close to runtime semantics (especially the
initialisers that are evaluated immediately during function definition).
0 commit comments