Skip to content

Replay fails in REPL #12124

Closed as not planned
Closed as not planned
@som-snytt

Description

@som-snytt

reproduction steps

using Scala 2.13.3,

scala> case class C(i: Int, j: Int)
class C

scala> { (i: Int, j) => C(i, j) }
java.lang.NullPointerException
	at scala.reflect.internal.Types$TypeRef.computeHashCode(Types.scala:2416)
[snip]

That entry seems to have slain the compiler.  Shall I replay
your session? I can re-run each line except the last one.
[y/n]y
replay> case class C(i: Int, j: Int)
Exception in thread "main" java.lang.NullPointerException
	at scala.reflect.internal.Types$TypeRef.computeHashCode(Types.scala:2416)

problem

It's supposed to re-run the first line successfully and stop. Instead it goes to replay it but sees the line 2 exception instead.

Weird, huh?

Noticed this at #12122 because how often does one slay the compiler these days?

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