Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0-RC2
    • Fix Version/s: Scala 2.10.0
    • Component/s: None

      Description

      With 2.10.RC2:
      
      scala> def foo(f: String => Array[String])(s: String) = ()
      foo: (f: String => Array[String])(s: String)Unit
      
      scala> foo _
      res3: (String => Array[String]) => (String => Unit) = <function1>
      
      scala> foo(Array(_)) _
      <console>:9: error: No ClassTag available for String
                    foo(Array(_)) _
                             ^ 
      

      It's a regression since 2.9.2, though there's a workaround:

      scala> foo(Array(_))(_)
      res0: String => Unit = <function1> 
      

      Discussion: http://groups.google.com/group/scala-internals/browse_thread/thread/f9abd854692f51d3

        Activity

        Show
        Eugene Burmako added a comment - https://github.com/scala/scala/pull/1639
        Show
        Jason Zaugg added a comment - Merged: https://github.com/scala/scala/commit/a0e642b7fe608b869071b690e7907b934b10db5a

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Eugene Burmako
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development