Scala Programming Language
  1. Scala Programming Language
  2. SI-8126

Add -Xsource flag (front-end behaves like specified version where possible)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.11.0-M7
    • Fix Version/s: Scala 2.11.0-M8
    • Component/s: Misc Compiler
    • Labels:
      None

      Description

      As described in an email by Jason:

      I've been plugging a few soundness holes recently, and thought it might be good to make some of the fixes opt-out with a compiler flag.

      For example: https://github.com/scala/scala/pull/3178#issuecomment-29444519

      We've discussed having a -source: option in the context of using the 2.11 presentation for 2.10 projects. I could put these sort of things behind that flag rather than inventing a plethora of new -Ybug-compat-SI-1234 flags.

      The current (among others, IDE team) goal is to not only implement that flag but use it to constrain all 2.11 fixes that prevent the type checker from running on a 2.10 code base.

        Issue Links

          Activity

          Hide
          François Garillot added a comment - - edited

          PR 3340 Merge commit b296396

          Show
          François Garillot added a comment - - edited PR 3340 Merge commit b296396
          Hide
          Adriaan Moors added a comment - - edited

          I'd like to consolidate this with -Xfuture, which corresponds to running 2.11 under -Xsource:2.12.

          See SI-8361.

          Show
          Adriaan Moors added a comment - - edited I'd like to consolidate this with -Xfuture, which corresponds to running 2.11 under -Xsource:2.12. See SI-8361 .

            People

            • Assignee:
              François Garillot
              Reporter:
              François Garillot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development