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
Due to stack-only nature of ref-like types, they cannot be stack-spilled. The situations where stack spilling is necessary are uncommon and somewhat hard to define. We must however give an error.
This is not a fundamentally new scenario. The limitation already existed for types such as TypedReference.
We must:
codify behavior in the language or compiler spec, even if broadly
consider that this is an emit-time diagnostics.
The effects of that:
-- error is reported on "Build" only
-- error does not change lambda inference.
The text was updated successfully, but these errors were encountered:
This is a bit of a corner case.
Due to stack-only nature of ref-like types, they cannot be stack-spilled. The situations where stack spilling is necessary are uncommon and somewhat hard to define. We must however give an error.
This is not a fundamentally new scenario. The limitation already existed for types such as TypedReference.
We must:
The effects of that:
-- error is reported on "Build" only
-- error does not change lambda inference.
The text was updated successfully, but these errors were encountered: