diff options
Diffstat (limited to 'tests/run/t3487.scala')
-rw-r--r-- | tests/run/t3487.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run/t3487.scala b/tests/run/t3487.scala new file mode 100644 index 000000000..f2ca73591 --- /dev/null +++ b/tests/run/t3487.scala @@ -0,0 +1,15 @@ +trait Bippy { + def bippy = 5 +} + +class Test extends Bippy { + def f1 = 55 +} + +object Test extends Test { + def dingus = bippy + def main(args: Array[String]): Unit = { + assert(bippy + f1 == 110) + } + override def bippy = 55 +} |