diff options
Diffstat (limited to 'test/files/neg/t8610-arg.check')
-rw-r--r-- | test/files/neg/t8610-arg.check | 9 |
1 files changed, 9 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..f2879b0d45 --- /dev/null +++ b/test/files/neg/t8610-arg.check @@ -0,0 +1,9 @@ +t8610-arg.scala:3: warning: `$name` looks like an interpolated identifier! Did you forget the interpolator? + def x = "Hi, $name" // missing interp + ^ +t8610-arg.scala:6: 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. +two warnings found +one error found |