summaryrefslogtreecommitdiff
path: root/test/files/neg/implicit-ambiguous-invalid.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/implicit-ambiguous-invalid.check')
-rw-r--r--test/files/neg/implicit-ambiguous-invalid.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/implicit-ambiguous-invalid.check b/test/files/neg/implicit-ambiguous-invalid.check
new file mode 100644
index 0000000000..68b607c4c2
--- /dev/null
+++ b/test/files/neg/implicit-ambiguous-invalid.check
@@ -0,0 +1,7 @@
+implicit-ambiguous-invalid.scala:5: warning: Invalid implicitAmbiguous message for method neqAmbig1 in object Test:
+The type parameter B referenced in the message of the @implicitAmbiguous annotation is not defined by method neqAmbig1.
+ implicit def neqAmbig1[A] : A =!= A = null
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found