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

[bugfix] Suppress unsafe type check warning #473

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

kciesielski
Copy link
Member

This fix removes a warning, which happens for Magnolia usages on generic types in case class params. The casting is generally safe except when there are default values overridden with different type, which is probably a very rare situation. A proper fix would require a broader change, touching the way default values are resolved, which doesn't seem worth pursuing at the moment. For the record, I added a commented test to reflect this case.

@kciesielski kciesielski requested a review from adamw June 15, 2023 07:42
@kciesielski kciesielski merged commit b4e3c7d into scala3 Jun 15, 2023
@kciesielski kciesielski deleted the fix/472-erasure-any branch June 15, 2023 07:48
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.

1 participant