New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repl replay last erroneous line #9787

Open
scabug opened this Issue May 20, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented May 20, 2016

When I replay with different compiler options, almost always I want to also replay that last erroneous line that will exhibit different behavior with the new options.

Can you do that?

scala> (new p.Base with p.Impls.ConcreteImpl).foo
res0: Int = 1

scala> import p._, Impls._
import p._
import Impls._

scala> (new Base with ConcreteImpl).foo
java.lang.AbstractMethodError: $anon$1.foo()I
  ... 32 elided

scala> :replay -Yno-load-impl-class
Replaying: (new p.Base with p.Impls.ConcreteImpl).foo
res0: Int = 1

Replaying: import p._, Impls._
import p._
import Impls._


scala> (new Base with ConcreteImpl).foo
res1: Int = 1
@scabug

This comment has been minimized.

Copy link
Author

scabug commented May 20, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9787?orig=1
Reporter: @som-snytt
Affected Versions: 2.12.0-M3

@scabug scabug added this to the Backlog milestone Apr 7, 2017

@SethTisue SethTisue removed quickfix labels Feb 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment