Closed
Description
As found in #2040
object MyPhantom extends Phantom {
type Foo = this.Any { type Member = Int }
}
will fail with
type Foo = this.Any { type Member = Int }
^^^^^^^^
illegal trait inheritance: superclass Object does not derive from trait Any's super<nonsensical><none></nonsensical>
The issue probably that there is an Object
added to the type of this.Any { type Member = Int }
when desugaring.