Skip to content

local lazy val containing case class fails to compile, issue with TreeTypeMap #1810

Closed
@smarter

Description

@smarter

I was asked to provide an example of TreeTypeMap being broken in some other phase than ElimByName, so here you go :).

class Test {
  def test: Unit = {
    lazy val x: Int = {
      case class Foo(x: Int)
      1
    }
  }
}

Fails with the mysterious:

constructor throws in class throws does not take type parameters

Stack trace after using -Xprompt: https://gist.github.com/d121067571cdcbf9bac26cf8028f6002

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions