Closed
Description
Compiler version
Scala compiler version 3.6.4-RC1-bin-SNAPSHOT-nonbootstrapped-git-bd07317 -- Copyright 2002-2024, LAMP/EPFL
Minimized example
trait P:
def foo: Int
class A extends P:
export this.foo
Output
No error or warning.
We generate the following cyclic definition:
class A() extends Object(), Test.P {
export this.foo
final def foo: Int = this.foo
}
Expectation
I would expect at least a warning here.