Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.3-RC1, Scala 2.10.0
    • Fix Version/s: Scala 2.10.1
    • Component/s: Misc Compiler
    • Labels:
      None

      Description

      $ scala -version
      Scala code runner version 2.10.0 -- Copyright 2002-2012, LAMP/EPFL
      
      # yay!!
      
      $ scala -X
      ...
        -Xmigration                    Warn about constructs whose behavior may have changed between 2.7 and 2.8.
      
      # wat?
      

      Adding a version number argument should clean that up

        Activity

        Show
        Simon Ochsenreither added a comment - Earlier attempts: https://groups.google.com/forum/#!searchin/scala-internals/%E2%80%9C-Xmigration%E2%80%9D/scala-internals/5fIw3w4LJbU/d3myzRFk23gJ https://github.com/scala/legacy-svn-scala/pull/91 https://github.com/scala/scala/pull/49 https://groups.google.com/forum/#!searchin/scala-internals/migration/scala-internals/SPxf0gPPtvs/eaovZ90ZtR8J
        Show
        James Iry added a comment - https://github.com/scala/scala/pull/1895
        Hide
        James Iry added a comment -

        The deprecation is now in 2.10.x. To avoid a merge conflict I'll wait until that's in master and then remove the entire switch.

        Show
        James Iry added a comment - The deprecation is now in 2.10.x. To avoid a merge conflict I'll wait until that's in master and then remove the entire switch.
        Show
        James Iry added a comment - https://github.com/scala/scala/pull/1922
        Hide
        James Iry added a comment -

        New plan is to add a version parameter to -Xmigration in 2.11. Then it would only print a warning on things that changed after that version number.

        Show
        James Iry added a comment - New plan is to add a version parameter to -Xmigration in 2.11. Then it would only print a warning on things that changed after that version number.
        Show
        James Iry added a comment - https://github.com/scala/scala/pull/1998

          People

          • Assignee:
            James Iry
            Reporter:
            James Iry
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development