summaryrefslogtreecommitdiff
path: root/test/files/neg/t715.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t715.scala')
-rw-r--r--test/files/neg/t715.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t715.scala b/test/files/neg/t715.scala
new file mode 100644
index 0000000000..87b2525a63
--- /dev/null
+++ b/test/files/neg/t715.scala
@@ -0,0 +1,15 @@
+package test;
+trait B {
+ type Node <: NodeImpl;
+ trait NodeImpl {
+ def self : Node;
+ def chilren : List[Node];
+ }
+}
+trait C extends B {
+ type Node <: NodeImpl;
+ trait NodeImpl extends super.NodeImpl {
+ override def children = super.chilren;
+ children;
+ }
+}