Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-8126

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

    Details

    • Type: Improvement
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.11.0-M7
    • Fix Version/s: Scala 2.11.0-M8
    • Component/s: Compiler (Misc)
    • 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: