## Compiler version 3.7.0 ## Minimized code ```scala trait Foo trait Bar new Foo { var x: Int = 42 val _ = new Bar: println(x) } ``` The compiler issues an "unused private member" warning for `var x` in line 5, even though it is used in line 7. [Scastie](https://scastie.scala-lang.org/HovCeEC0Tku6WS1HtDDaAg)