Skip to content

classOf/getClass are not implemented #579

Closed
@smarter

Description

@smarter
  • classOf[Int] is erased to classOf() which is wrong. In scalac it is not erased but is replaced by java.lang.Integer.TYPE in cleanup.
  • 2.getClass() causes a crash in the backend, in scalac it is erased to runtime.this.ScalaRunTime.anyValClass(scala.Int.box(2), (ClassTag.Int(): scala.reflect.ClassTag))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions