summaryrefslogtreecommitdiff
path: root/test/files/neg/t8610-arg.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8610-arg.check')
-rw-r--r--test/files/neg/t8610-arg.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8610-arg.check b/test/files/neg/t8610-arg.check
new file mode 100644
index 0000000000..d6fe207119
--- /dev/null
+++ b/test/files/neg/t8610-arg.check
@@ -0,0 +1,6 @@
+t8610-arg.scala:8: warning: side-effecting nullary methods are discouraged: suggest defining as `def u()` instead
+ def u: Unit = () // unitarian universalist
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found