Skip to content

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Feb 14, 2025

Backports scala#21647 to the 3.3.6.

PR submitted by the release tooling.
[skip ci]

The testType Any is erased to Object, but the expr type Int isn't erased
to Integer, so then it fails as Int !<: Object.  We avoid the problem by
feeding in AnyVal, leading to a (possibly elided) non-null test only.

[Cherry-picked d02d4b8]
@tgodzik tgodzik closed this Feb 14, 2025
@tgodzik tgodzik deleted the backport-lts-3.3-21647 branch February 14, 2025 16:45
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.

2 participants