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

report error when using wildcard for top-level type parameter name

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.9.1
    • Fix Version/s: Backlog
    • Component/s: Type Checker
    • Labels:

      Description

      I am able to crash the compiler with the following code:

      object TestModel {
      }
       
      case class CaseTest[_](someData:String)
      

      The error is the following:

       java.lang.AssertionError: assertion failed: transformCaseApply: name = _! tree = _ / class scala.reflect.generic.Trees$Ident
      at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$2.apply$mcV$sp(RefChecks.scala:1493)
      at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformCaseApply(RefChecks.scala:1309)
      etc..
      

      (I really hope I was supposed to issue this as a bug, first time ever I do this kind of thing. If I shouldnt, I am very sorry for the inconvenience)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              whiteancient Jonas Ohlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: