summaryrefslogtreecommitdiff
path: root/test/files/run/t3487.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t3487.scala')
-rw-r--r--test/files/run/t3487.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t3487.scala b/test/files/run/t3487.scala
new file mode 100644
index 0000000000..f2ca735913
--- /dev/null
+++ b/test/files/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
+}