summaryrefslogtreecommitdiff
path: root/test/files/neg/t8450.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8450.check')
-rw-r--r--test/files/neg/t8450.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8450.check b/test/files/neg/t8450.check
new file mode 100644
index 0000000000..eeabb9730c
--- /dev/null
+++ b/test/files/neg/t8450.check
@@ -0,0 +1,6 @@
+t8450.scala:5: warning: implicit numeric widening
+ def elapsed: Foo = (System.nanoTime - 100L).foo
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found