summaryrefslogblamecommitdiff
path: root/test/files/run/t1368.scala
blob: c9b229720343c7b21012d5899eb10a11caede876 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                            
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
}