Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.12.0-M3
    • Fix Version/s: Backlog
    • Component/s: Repl / Interpreter
    • Labels:

      Description

      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
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: