Skip to content

Conversation

@tgodzik
Copy link

@tgodzik tgodzik commented Jun 19, 2025

Backports scala#23256 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

Fixes scala#23250 

The check for "unused implicit parameter" considers the type of the
parameter, but it should dealias first.

In addition, take an abstract type as not warnable, unless it has an
upper bound that is warnable (has non-universal members).

Note that `isSingleton` dealiases.

There was an ancient (OG) typo of `&` for `&&` which has gone unfixed
despite other edits. The right operand was always just an instanceof.
Not sure if the previous idiom saves an opcode, but now it looks like
other code nearby.
[Cherry-picked 2d18655]
@tgodzik tgodzik closed this Jun 20, 2025
@tgodzik tgodzik deleted the backport-lts-3.3-23256 branch June 20, 2025 07:22
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.

3 participants