summaryrefslogtreecommitdiff
path: root/test/files/neg/t6895.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6895.check')
-rw-r--r--test/files/neg/t6895.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t6895.check b/test/files/neg/t6895.check
new file mode 100644
index 0000000000..df01031fff
--- /dev/null
+++ b/test/files/neg/t6895.check
@@ -0,0 +1,6 @@
+t6895.scala:19: error: polymorphic expression cannot be instantiated to expected type;
+ found : [F3[F3_P]]Foo[F3]
+ required: Foo[[X3]Bar[[X1]String]]
+ val nok: Foo[({type L[X3] = Bar[M]})#L] = barFoo /* Type inference can't unify F with L */
+ ^
+one error found