Scala Programming Language
  1. Scala Programming Language
  2. SI-5007

Tuple vs Multiple Arguments error message regression

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.1
    • Fix Version/s: Scala 2.9.2
    • Component/s: Misc Compiler
    • Labels:
      None
    • Environment:

      n/a

      Description

      As of Scala 2.9.1, the error message present on Scala 2.8.1/2.9.0 regarding tupled functions vs multiple parameter functions is no longer clear. 2.9.0:

      scala> def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
      <console>:5: error: type mismatch;
      found : (A, B) => Boolean
      required: ((A, B)) => Boolean
      def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
      ^

      2.9.1:

      scala> def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
      <console>:7: error: type mismatch;
      found : (A, B) => Boolean
      required: (A, B) => Boolean
      def f[A,B](m: Map[A, B], p: (A, B) => Boolean) = m partition p
      ^

        Activity

        Hide
        Paul Phillips added a comment -

        I fixed this against some other ticket reporting it.

        Show
        Paul Phillips added a comment - I fixed this against some other ticket reporting it.
        Hide
        Paolo G. Giarrusso added a comment -

        That's SI-5067. Will the fix be in 2.9.2?

        Show
        Paolo G. Giarrusso added a comment - That's SI-5067 . Will the fix be in 2.9.2?

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Daniel Sobral
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development