blob: 7ec3605e84b22d5d7f88e665b832b4f57f0c0d67 (
plain) (
tree)
|
|
object Test extends dotty.runtime.LegacyApp {
trait Happy { val status = "happy" }
trait Sad { val status = "sad" }
def go1 = (new AnyRef with Happy with Sad { override val status = "happysad" }).status
def go2 = (new AnyRef with Happy with Sad { val blurp = "happysad" ; override val status = blurp }).status
def go3 = (new AnyRef with Happy with Sad { override val status = blurp ; val blurp = "happysad" }).status
}
|