8000 Crash with inherited apply from separately compiled class · Issue #10261 · scala/bug · GitHub
[go: up one dir, main page]

Skip to content
Crash with inherited apply from separately compiled class #10261
@adriaanm

Description

@adriaanm

Regression introduced in 2.11.9 by scala/scala#5730, sadly not fixed in 2.11.10. (2.12.2 PR: scala/scala#5816)

First compile:

trait Companion { def apply(value: String): Any = ??? }

Then, with the previously compiled trait on the classpath, compile:

object o extends Companion
case class o(value: String)

Crash:

error:
  Unknown type: <error>, <error> 
[class scala.reflect.internal.Types$ErrorType$, class scala.reflect.internal.Types$ErrorType$]
 TypeRef? false
     while compiling: o.scala
        during phase: icode

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0