Skip to content
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
Open

Repl replay last erroneous line #9787

scabug opened this issue May 20, 2016 · 1 comment

Comments

@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
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

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

No branches or pull requests

2 participants