aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i827.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i827.scala')
-rw-r--r--tests/neg/i827.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/i827.scala b/tests/neg/i827.scala
index cc795b590..182ffe0b1 100644
--- a/tests/neg/i827.scala
+++ b/tests/neg/i827.scala
@@ -1,7 +1,7 @@
trait A { trait Inner }
trait B { self: A =>
- trait Inner extends self.Inner
+ trait Inner extends self.Inner // error: cannot merge trait Inner in trait A with trait Inner in trait B as members of type (A & B)(B.this)
}
-class C extends C
+class C extends C // error: cyclic inheritance: class C extends itself