Skip to content

-Wconf:msg doesn't work as in scala2 #18804

Open
@Daenyth

Description

@Daenyth

Compiler version

3.3.1

Minimized code

Could be anything, but I was testing with the example code from scalatest:

https://scastie.scala-lang.org/MlixqluOSei8PhRAqT69aw

Output

It fails to compile with unused value of type org.scalatest.Assertion

Expectation

The same exact code+sbt configuration works in scala 2.13, compiling without error

https://scastie.scala-lang.org/Bdz9lvvrT6y84XverBCfCA

The output of -Wconf:help on scala 3.3.1 suggests that this should work:

<filter>

  • Message content: msg=regex
    The regex need only match some part of the message, not all of it.

<action>

  • silent / s

Metadata

Metadata

Assignees

Labels

area:lintingLinting warnings enabled with -W or -Xlintitype:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions