Skip to content

not found: value getClass #12025

@matobet

Description

@matobet

reproduction steps

using Scala (2.13.2),

class Howdy(c: Class[_]) {
  def this() = this(getClass)
}

problem

Fails to compile with

Error:(8, 21) not found: value getClass
  def this() = this(getClass)

The above class compiles successfully with Scala 2.12.7.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions