- Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:enhancement
Description
Compiler version
3.8
Minimized code
//> using scala 3.7.2 //> using options -Wunused:imports -Wconf:origin=scala.compiletime.testing.*:s -rewrite def test: Unit = { import scala.compiletime.testing.typeCheckErrors //import scala.compiletime.testing.* // workaround //typeChecks("2 + 2") typeCheckErrors("2 + 2") }
Output
Lint incorrectly warns but -Wconf says ignore it. But -rewrite removes the import anyway.
Expectation
Lint should rewrite only what actually warns.
Noticed with some chagrin at #23967 (comment).
Metadata
Metadata
Assignees
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:enhancement