summaryrefslogtreecommitdiff
path: root/test/files/neg/t7860.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t7860.check')
-rw-r--r--test/files/neg/t7860.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t7860.check b/test/files/neg/t7860.check
new file mode 100644
index 0000000000..9b9d86c89d
--- /dev/null
+++ b/test/files/neg/t7860.check
@@ -0,0 +1,9 @@
+t7860.scala:5: warning: private class for your eyes only in object Test is never used
+ private implicit class `for your eyes only`(i: Int) { // warn
+ ^
+t7860.scala:31: warning: private class C in object Test3 is never used
+ private implicit class C(val i: Int) extends AnyVal { // warn
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+two warnings found
+one error found