blob: c9b229720343c7b21012d5899eb10a11caede876 (
plain) (
tree)
|
|
object Test extends Application {
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
}
|