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

Fix adaptation of constants to constant type aliases #18360

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 8, 2023

Fixes #18340

Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, very nice.

LGTM, but as I did the work the other day, as well as the fact that there are some differences in the various cases, could you add the rest of the combinations I put in #18340 (comment)?

@odersky
Copy link
Contributor Author

odersky commented Aug 9, 2023

@dwijnand Could you push these additional tests to this PR?

@dwijnand dwijnand merged commit 5eeac92 into scala:main Aug 9, 2023
13 checks passed
@dwijnand dwijnand deleted the fix-18340 branch August 9, 2023 10:37
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
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.

int/long literal type conforms to float/double literal type with different value via type alias
3 participants