summaryrefslogtreecommitdiff
path: root/test/files/neg/bug1279a.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug1279a.check')
-rw-r--r--test/files/neg/bug1279a.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/bug1279a.check b/test/files/neg/bug1279a.check
new file mode 100644
index 0000000000..48b84e0f46
--- /dev/null
+++ b/test/files/neg/bug1279a.check
@@ -0,0 +1,6 @@
+bug1279a.scala:34: error: no type parameters for method all4Impl: (M{type T <: U})Stream[M{type T <: U}] exist so that it can be applied to arguments (first.selfType)
+ --- because ---
+result type Stream[M{type T <: U}] is incompatible with expected type Stream[M{type T <: U}]
+ def all4Impl[U](first: M {type T <: U}): Stream[M {type T <: U}] = Stream.cons(first, all4Impl(first.next))
+ ^
+one error found