Skip to content

Conversation

@mhsdesign
Copy link
Contributor

Kinda hacky ... hmmm

@mhsdesign mhsdesign marked this pull request as draft April 7, 2023 21:16
@mhsdesign mhsdesign requested a review from grebaldi April 8, 2023 07:49
mhsdesign added a commit that referenced this pull request Apr 8, 2023
- reimplement #9 cleaner
- enum static will be converted to enum instance in ComponentScope, but enum static is the imported type
- Remove global ButtonType hack in the tests and import it correctly in the Match.afx
- ModuleScope::lookupTypeFor didnt work for imported enums (IdentifierResolver Failed)

Match related:
- multiple default arms -> throws
- if there is no default arm and not all enum members are listed -> throws
- if enum members are listed twice -> throws
- if enum is matched against non enum member -> throws
- if enum is matched against other enum -> throws
@mhsdesign
Copy link
Contributor Author

obsolete via: #12

this one is was too hacky ^^

@mhsdesign mhsdesign closed this Apr 8, 2023
@mhsdesign mhsdesign deleted the task/wip-enums-ensure-match-complete branch April 23, 2023 13:49
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