Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to spec the behavior where async spilling cannot spill ref-like types #22055

Open
VSadov opened this issue Sep 11, 2017 · 0 comments
Open

Comments

@VSadov
Copy link
Member

VSadov commented Sep 11, 2017

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:

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants