## Compiler version Scala 3.6.2 with scalacOptions "-Wunused:imports" ## Minimized code <!-- This code should be self contained, compilable (with possible failures) and as small as possible. Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. --> ```Scala import scala.compiletime.deferred class Context trait Foo: given context: Context = deferred ``` ## Output Scala compiler returns a warning `unused import import scala.compiletime.deferred` The incorrect warning results in misleading highlighting in IntelliJ IDEA when compiler-based highlighting is enabled ## Expectation The compiler should not return an "unused import" warning for `scala.compiletime.deferred`, as it is clearly used in the code