Works properly in Scala 2.13.10 (with `-Xlint:unused`) ## Compiler version v3.3.0-RC5 ## Minimized code ```scala //> using scala "3.3.0-RC4" //> using option "-Wunused:all" import scala.annotation.unused class extunused extends unused("extended") def hithere: Unit = { @extunused val x = 1 print("hi") } ``` ## Output ```scala [warn] .\test1.sc:9:7: unused local definition [warn] val x = 1 ``` ## Expectation No warning.