## Minimized code ```Scala class A: val x: AnyRef @main def m: Unit = val a = new A a.x: a.x.type // ok a: A { val x: a.x.type } // nope ``` https://scastie.scala-lang.org/0PCX1TY0TxCO1Voo5NohLQ ## Output ```scala Found: (a : A) Required: A{x: (a.x : AnyRef)} ``` ## Expectation Should type check. This is crucially needed for more advanced dependent-typing use cases.