summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2016-05-30 11:47:32 +0200
committerLukas Rytz <lukas.rytz@typesafe.com>2016-05-30 11:47:32 +0200
commit7d5a0b326deb5fd6efbbe0d8b1f32894589a3118 (patch)
treee96bce5a4d4015b038b844091274bf44ea32c4a8 /test/files
parent6265eb83e057c5284a7859893d0fd3120284c3bf (diff)
parentfd6386a51e9a5b97a83198a310923cd012e1aab0 (diff)
downloadscala-7d5a0b326deb5fd6efbbe0d8b1f32894589a3118.tar.gz
scala-7d5a0b326deb5fd6efbbe0d8b1f32894589a3118.tar.bz2
scala-7d5a0b326deb5fd6efbbe0d8b1f32894589a3118.zip
Merge pull request #5193 from som-snytt/issue/9794
SI-9794 Error advice uses decoded method name
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/missing-arg-list.check7
-rw-r--r--test/files/neg/missing-arg-list.scala3
2 files changed, 9 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
diff --git a/test/files/neg/missing-arg-list.scala b/test/files/neg/missing-arg-list.scala
index c422dd32fe..44b83e429d 100644
--- a/test/files/neg/missing-arg-list.scala
+++ b/test/files/neg/missing-arg-list.scala
@@ -10,4 +10,7 @@ trait T {
val x = f
val y = g
val z = h
+
+ def +(i: Int) = i + 42
+ val p = +
}