Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-5654

compiler chokes on case classes with parameters of type Array[_]

    Details

      Description

      case class Bomb(a: Array[_])
      case class Bomb2(a: Array[T] forSome

      { type T }

      )
      class Okay1(a: Array[_])
      case class Okay2(s: Seq[_])

      [error]

      {file:/.../}

      default-7541a3/compile:compile: scala.tools.nsc.symtab.Types$TypeError: type mismatch;
      [error] found : java.lang.Object
      [error] required: Array[java.lang.Object]

      most recent version tested: 2.9.2-RC3

        Attachments

          Activity

            People

            • Assignee:
              rytz Lukas Rytz
              Reporter:
              robcd Rob Dickens
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: