-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
convert & promote_rule for Char and strings #25728
Comments
That's tempting, but I'm not sure that's right to allow converting an entry into a one-element collection like that. Shouldn't we define Do we have other use cases than |
I think this is non-breaking? |
Changes to promotion affect the type of elements inside array literals, so I think it's breaking (though not terribly so). |
True. I'm starting to think I'd prefer a slightly different approach to promotion in general. The only cases where I really want it are arithmetic, and mixed numeric array literals like |
Triage: decided against. |
Came up over here: #25515 (comment). I think we should consider adding something like:
Previously when
Char <: Integer
this was considerably sketchier but that's not the case anymore.The text was updated successfully, but these errors were encountered: