summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-nsc/files/neg/abstract.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-nsc/files/neg/abstract.scala b/test-nsc/files/neg/abstract.scala
new file mode 100755
index 0000000000..41cfc81309
--- /dev/null
+++ b/test-nsc/files/neg/abstract.scala
@@ -0,0 +1,9 @@
+trait A {
+ type T <: A;
+ def baz(): A;
+ def bar(): T;
+ def foo1 = bar().bar();
+ def foo2 = bar().baz();
+ def foo3 = baz().bar();
+ def foo4 = baz().baz();
+}