diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-05-26 21:53:19 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-05-26 21:53:19 -0700 |
commit | fd6386a51e9a5b97a83198a310923cd012e1aab0 (patch) | |
tree | b91f5fdc9fdf65c39aae7cdec3424bc2e44fe5af /test/files/neg/missing-arg-list.check | |
parent | edbf2c42d933ed59e4f5f41c26bfcc8f18915caf (diff) | |
download | scala-fd6386a51e9a5b97a83198a310923cd012e1aab0.tar.gz scala-fd6386a51e9a5b97a83198a310923cd012e1aab0.tar.bz2 scala-fd6386a51e9a5b97a83198a310923cd012e1aab0.zip |
SI-9794 Error advice uses decoded method name
So much work went into polishing this error message,
it's worth buffing the method name when it's an operator.
The message now says `+` instead of `$plus`.
Diffstat (limited to 'test/files/neg/missing-arg-list.check')
-rw-r--r-- | test/files/neg/missing-arg-list.check | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/files/neg/missing-arg-list.check b/test/files/neg/missing-arg-list.check index 5a011c36f2..229baac177 100644 --- a/test/files/neg/missing-arg-list.check +++ b/test/files/neg/missing-arg-list.check @@ -18,4 +18,9 @@ Unapplied methods are only converted to functions when a function type is expect You can make this conversion explicit by writing `h _` or `h(_,_,_)(_)` instead of `h`. val z = h ^ -four errors found +missing-arg-list.scala:15: error: missing argument list for method + in trait T +Unapplied methods are only converted to functions when a function type is expected. +You can make this conversion explicit by writing `+ _` or `+(_)` instead of `+`. + val p = + + ^ +5 errors found |