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

@newtype doesn't work with .size/etc #156

Open
rooooooooob opened this issue Mar 16, 2023 · 0 comments
Open

@newtype doesn't work with .size/etc #156

rooooooooob opened this issue Mar 16, 2023 · 0 comments

Comments

@rooooooooob
Copy link
Collaborator

foo = uint .size 2 ; @newtype

Will not work, and will instead generate a type alias as if the @newtype wasn't there.

The parsing logic in general needs a lookover and possible refactor as similar things are handled in multiple places (leading to cases like this not being handled). Especially the comment DSL, but also tags + cbor control operators.

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

No branches or pull requests

1 participant