aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i756.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/i756.scala')
-rw-r--r--tests/run/i756.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/i756.scala b/tests/run/i756.scala
new file mode 100644
index 000000000..dd9b2be4f
--- /dev/null
+++ b/tests/run/i756.scala
@@ -0,0 +1,8 @@
+trait T { def foo: Int = 3 }
+trait T1 extends T { override def foo = super.foo }
+trait T2 extends T { override def foo = super.foo }
+object Test extends T2 with T1 {
+ def main(args: Array[String]) = {
+ assert(foo == 3)
+ }
+}