Skip to content

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

@scabug

Description

@scabug

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions