Skip to content

Backport "Generalize warnings for top-level calls to Any or AnyRef methods" to LTS #21091

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

Merged
merged 3 commits into from
Jul 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix indentation
Co-authored-by: Sébastien Doeraene <[email protected]>
[Cherry-picked 27cc89d]
  • Loading branch information
2 people authored and WojciechMazur committed Jul 6, 2024
commit 58a14e82e8b8ec47cebab9ec5aaa75c07615a11a
4 changes: 2 additions & 2 deletions tests/warn/i17493.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//> using options -explain
class A(val s: String) extends AnyVal {
class A(val s: String) extends AnyVal {
// def f = eq("hello, world") // no warning for now because `eq` is inlined
def g = synchronized { println("hello, world") } // warn
}
}