The following code compiles using Scala: ```scala trait Test { type A <: Any { type T } type B <: Any { type T } type C <: A with B { type T } } ``` Dotty produces the following compiler error: ``` 4 | type C <: A with B { type T } | ^ | class Any is extended twice ``` Notably, the following code compiles: ```scala trait Test { type A <: Any type B <: Any type C <: A with B } ```