Closed
Description
Compiler version
3.0.0-RC1
Minimized code
trait X { type M = Int }
object Y {
type M = String
class C extends X {
def m: M = 123
}
}
Output
7 | def m: M = 123
| ^
| Reference to M is ambiguous,
| it is both defined in object Y
| and inherited subsequently in class C
Expectation
It should compile. (It does in Scala 2.x)