Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix false positive universal-methods lint warning in synthetic code#11159

Merged
som-snytt merged 1 commit into
scala:2.13.xfrom
som-snytt:issue/13134-lint-synth
Oct 23, 2025
Merged

Fix false positive universal-methods lint warning in synthetic code#11159
som-snytt merged 1 commit into
scala:2.13.xfrom
som-snytt:issue/13134-lint-synth

Conversation

@som-snytt
Copy link
Copy Markdown
Contributor

@som-snytt som-snytt commented Oct 22, 2025

Fixes scala/bug#13134, a false positive universal-methods lint warning in synthetic code for partial functions.

Only warn a dubious selection that has a range position, which is more likely to be user-written code.

@scala-jenkins scala-jenkins added this to the 2.13.18 milestone Oct 22, 2025
@som-snytt som-snytt marked this pull request as ready for review October 22, 2025 21:47
@som-snytt som-snytt merged commit cf0d4c1 into scala:2.13.x Oct 23, 2025
3 checks passed
@som-snytt som-snytt deleted the issue/13134-lint-synth branch October 23, 2025 12:31
@lrytz lrytz changed the title Restrict select lint to range pos Fix false positive universal-methods lint warning in synthetic code Nov 6, 2025
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.

"dubious usage of method asInstanceOf" false positive

3 participants