-
Notifications
You must be signed in to change notification settings - Fork 240
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
Cast to non-builtin types #6
Comments
What do you think the behavior for translating casts should be? I realize there's a problem, but I don't see an obvious target for casts. |
I think that just removing them would be better (except the built-in ones that work as they are now). So |
I don't think we can simply drop the casts because I think a reasonable approach would be:
What do you think of that? |
That looks good. ( I'll come with a pull request shortly. |
A cast to a class type is turned into a constructor of that type. For example:
becomes:
However, with builtin types like
String
, this works fine.The text was updated successfully, but these errors were encountered: