summaryrefslogtreecommitdiff
path: root/test/files/pos/bug700.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug700.scala')
-rw-r--r--test/files/pos/bug700.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/bug700.scala b/test/files/pos/bug700.scala
new file mode 100644
index 0000000000..7477bb54f6
--- /dev/null
+++ b/test/files/pos/bug700.scala
@@ -0,0 +1,10 @@
+trait Foo {
+ def foobar: Unit;
+}
+
+trait Bar extends Foo {
+ def foobar: unit = super.foobar
+}
+
+// the following definition breaks the compiler
+abstract class Foobar extends Bar