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

Partial application broken for Function21 and Function22

    Details

      Description

      The following works in scala-2.8.1 and doesn't in 2.9.1 to 2.9.2-RC2:

      def f(x1:Int, x2:Int, x3:Int, x4:Int, x5:Int, x6:Int, x7:Int, x8:Int, x9:Int, x10:Int, x11:Int, x12:Int, x13:Int, x14:Int, x15:Int, x16:Int, x17:Int, x18:Int, x19:Int, x20:Int, x21:Int) =
        x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+x21
      
      f _
      

      The error (in the REPL) is:

      error: missing arguments for method f in object $iw;
      follow this method with `_' if you want to treat it as a partially applied function
      

      Same problem with Function22. Might be related to SI-4545?

        Activity

        Hide
        Paul Phillips added a comment -

        100% it's SI-4545. I'm sorry that has slipped through the cracks.

        Show
        Paul Phillips added a comment - 100% it's SI-4545 . I'm sorry that has slipped through the cracks.
        Hide
        Paul Phillips added a comment -

        Fixed in 75e584bd0c and backported to 2.9.x.

        Show
        Paul Phillips added a comment - Fixed in 75e584bd0c and backported to 2.9.x.
        Hide
        Antonio Bellezza added a comment -

        Thanks. That was quick!

        Show
        Antonio Bellezza added a comment - Thanks. That was quick!

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Antonio Bellezza
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development