summaryrefslogtreecommitdiff
path: root/test/neg/overlapping.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/neg/overlapping.scala')
-rw-r--r--test/neg/overlapping.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/neg/overlapping.scala b/test/neg/overlapping.scala
new file mode 100644
index 0000000000..1c4a82ef79
--- /dev/null
+++ b/test/neg/overlapping.scala
@@ -0,0 +1,10 @@
+// Tests detection of overlapping erased signatures
+
+// $Id$
+
+trait X {
+ type I;
+ type J;
+ def foo: I;
+ def foo: J;
+}