You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ scalac Test.scala -Xlint -Wconf:any:error
Test.scala:1: warning: object Bar should not extend Cloneable.
object Bar extends Cloneable {
^
Test.scala:2: error: side-effecting nullary methods are discouraged: suggest defining as `def f()` instead [quickfixable]Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=lint-nullary-unit, site=Bar def f: Unit = {} ^1 warning1 error$ scalac Test.scala -Xlint -Wconf:any:silentTest.scala:1: warning: object Bar should not extend Cloneable.object Bar extends Cloneable { ^1 warning
Problem
-Xlint:cloneable level isn't changed by -Wconf:any settings, whereas -Xlint:nullary-unit and every other lint setting I've tested is
The text was updated successfully, but these errors were encountered:
I'm aware that -Wconf originally configured configurable warnings, which were warnings normally collected for a "summary" report. If -Wconf can configure any warning, then all warnings must be treated the same way, including warnings that don't have a summary report.
Reproduction steps
Scala version: 2.13.13
Problem
-Xlint:cloneable level isn't changed by -Wconf:any settings, whereas -Xlint:nullary-unit and every other lint setting I've tested is
The text was updated successfully, but these errors were encountered: