-
Notifications
You must be signed in to change notification settings - Fork 5
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
Struct field alias #215
Comments
@donderom Have you tried case class foo(`type`: Int, value: Int) derives Struct ? |
It might work but I can only pass such a structure, and it looks like, in this case, the field name doesn't even matter. |
Field names don't matter for struct defiinitions, only the order of members. re: |
Ok, so it's only function names that matter, isn't it? |
Yes. Function names are used for symbol lookup. There are ways to do platform specific overrides of symbol lookup though. |
Is there any way to map the following definition
where
type
is a keyword in Scala?The text was updated successfully, but these errors were encountered: