summaryrefslogtreecommitdiff
path: root/test/files/neg/bug170.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug170.scala')
-rw-r--r--test/files/neg/bug170.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/bug170.scala b/test/files/neg/bug170.scala
new file mode 100644
index 0000000000..b1f712804e
--- /dev/null
+++ b/test/files/neg/bug170.scala
@@ -0,0 +1,15 @@
+trait J {
+ def foo(): Unit;
+}
+
+trait I with J {
+ override def foo(): Unit = ();
+}
+
+class D extends J with I {
+ abstract override def foo(): Unit = super.foo();
+}
+
+object Test with Executable {
+ (new D).foo();
+}