diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t1368.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t1368.scala b/test/files/run/t1368.scala new file mode 100644 index 0000000000..c9b2297203 --- /dev/null +++ b/test/files/run/t1368.scala @@ -0,0 +1,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 +} + |