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

Autounravel #505

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

Autounravel #505

wants to merge 48 commits into from

Conversation

charlesstaats
Copy link
Contributor

Add autounravel keyword. An autounravel field is always static and is automatically unraveled whenever its containing struct is available in the current environment (without any qualifier).

charlesstaats and others added 30 commits June 2, 2024 15:28
An implicitly defined autounravel function like 'alias' is allowed to be
shadowed. However, if the (explicitly defined) replacement is itself
shadowed with another autounravel function, that should produce an
error.
This test case checks for the presence of operator== for a nested struct
as a field that can be unraveled from the outer struct. If builtinOps
were not autounraveled, it would fail without the second call to
addRecordOps in recorddec::transAsField.
builtin.cc Outdated Show resolved Hide resolved
dec.cc Show resolved Hide resolved
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.

2 participants