summaryrefslogtreecommitdiff
path: root/test/files/run/t8610.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8610.check')
-rw-r--r--test/files/run/t8610.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t8610.check b/test/files/run/t8610.check
new file mode 100644
index 0000000000..fde82d5109
--- /dev/null
+++ b/test/files/run/t8610.check
@@ -0,0 +1,13 @@
+t8610.scala:4: warning: possible missing interpolator: detected interpolated identifier `$name`
+ def x = "Hi, $name" // missing interp
+ ^
+t8610.scala:6: warning: Adapting argument list by creating a 2-tuple: this may not be what you want.
+ signature: X.f(p: (Int, Int)): Int
+ given arguments: 3, 4
+ after adaptation: X.f((3, 4): (Int, Int))
+ def g = f(3, 4) // adapted
+ ^
+t8610.scala:7: warning: side-effecting nullary methods are discouraged: suggest defining as `def u()` instead
+ def u: Unit = () // unitarian universalist
+ ^
+Hi, $name