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

Christoph/feat/gen structs #906

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cburgdorf
Copy link
Collaborator

What was wrong?

How was it fixed?

To-Do

  • OPTIONAL: Update Spec if applicable

  • Add entry to the release notes (may forgo for trivial changes)

  • Clean up commit history

@cburgdorf
Copy link
Collaborator Author

@g-r-a-n-t I revived an old branch where I once started hacking together support for generic structs. I've looked into it again and I'm stuck with a certain problem. I'll leave another note inline.

// This seems to be the place were we could capture the mapping of generic types to concrete types.
// But how exactly is still unclear because we can not simply map TypeID to a fixed set of concrete types
// because the TypeID of `Foo<T>` is the same no matter if we deal with `Foo<u256>` or `Foo<bool>`.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's basically what I'm currently stuck at. I'm not yet sure how to properly resolve generic structs in MIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant