summaryrefslogtreecommitdiff
path: root/test/files/neg/t588.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t588.scala')
-rw-r--r--test/files/neg/t588.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t588.scala b/test/files/neg/t588.scala
new file mode 100644
index 0000000000..f30937377e
--- /dev/null
+++ b/test/files/neg/t588.scala
@@ -0,0 +1,15 @@
+abstract class Test0 {
+ def visit(f: Int => Unit): Boolean
+ def visit(f: Int => String): Boolean
+}
+trait Test {
+ type TypeA <: TraitA;
+ type TypeB <: TypeA with TraitB;
+
+ def f(node : TypeA) : Unit;
+ def f(brac : TypeB) : Unit;
+
+ trait TraitA;
+ trait TraitB;
+
+}