diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-12 16:54:49 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-12 20:47:39 -0700 |
commit | f5e71796d5b964026f5723318d29be5b189b442e (patch) | |
tree | 39926b10b22d920555244622655b27c104cc37ee /test/files/neg/names-defaults-neg.check | |
parent | 5f674e44c5d3dccb55ce080c60d92b8e412d03ac (diff) | |
download | scala-f5e71796d5b964026f5723318d29be5b189b442e.tar.gz scala-f5e71796d5b964026f5723318d29be5b189b442e.tar.bz2 scala-f5e71796d5b964026f5723318d29be5b189b442e.zip |
Better error message for pattern arity errors.
Because friends don't tell friends:
"wrong number of arguments for <none>"
Diffstat (limited to 'test/files/neg/names-defaults-neg.check')
-rw-r--r-- | test/files/neg/names-defaults-neg.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/names-defaults-neg.check b/test/files/neg/names-defaults-neg.check index 2809350855..f3c45a6aa0 100644 --- a/test/files/neg/names-defaults-neg.check +++ b/test/files/neg/names-defaults-neg.check @@ -76,7 +76,7 @@ and method f in object t8 of type (a: Int, b: Object)String match argument types (a: Int,b: String) and expected result type Any println(t8.f(a = 0, b = "1")) // ambigous reference ^ -names-defaults-neg.scala:69: error: wrong number of arguments for <none>: (x: Int, y: String)A1 +names-defaults-neg.scala:69: error: wrong number of arguments for pattern A1(x: Int,y: String) A1() match { case A1(_) => () } ^ names-defaults-neg.scala:76: error: no type parameters for method test4: (x: T[T[List[T[X forSome { type X }]]]])T[T[List[T[X forSome { type X }]]]] exist so that it can be applied to arguments (List[Int]) |