Skip to content

manifest of f bounded Java class results in typer stackoverflow #9276

Open
@scabug

Description

@scabug
import scala.reflect.Manifest

class Test {
   implicitly[Manifest[Enum[_]]]
}

This results in:

Exception in thread "main" java.lang.StackOverflowError
	at scala.tools.nsc.typechecker.Contexts$Context.nextOuter(Contexts.scala:606)
	at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:837)
	at scala.tools.nsc.typechecker.Contexts$Context.withOuter$1(Contexts.scala:839)
	at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:860)

Since:

scala/scala#3471 / #6169

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions