diff options
author | James Iry <jamesiry@gmail.com> | 2013-01-28 08:55:34 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-01-29 13:14:17 -0800 |
commit | 1de399d3c655807465c6369f77d08e57743e7eaa (patch) | |
tree | e967c0bf49de2ee368a137cf91308de623bc9d13 /src/library | |
parent | d4de6f4cc6c3f0f9d7810c6e9a10147a0406e3f5 (diff) | |
download | scala-1de399d3c655807465c6369f77d08e57743e7eaa.tar.gz scala-1de399d3c655807465c6369f77d08e57743e7eaa.tar.bz2 scala-1de399d3c655807465c6369f77d08e57743e7eaa.zip |
SI-6963 Add version to -Xmigration
Adds an optional version parameter to the -Xmigration compiler setting.
Doing -Xmigration without version number behaves as it used to by
dumping every possible migration warning.
This commit adds a ScalaVersion class (plus ancillary stuff), and a
ScalaVersionSetting.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/annotation/migration.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/annotation/migration.scala b/src/library/scala/annotation/migration.scala index 49fea9434c..adb6de6afd 100644 --- a/src/library/scala/annotation/migration.scala +++ b/src/library/scala/annotation/migration.scala @@ -17,7 +17,8 @@ package scala.annotation * order between Scala 2.7 and 2.8. * * @param message A message describing the change, which is emitted - * by the compiler if the flag `-Xmigration` is set. + * by the compiler if the flag `-Xmigration` indicates a version + * prior to the changedIn version. * * @param changedIn The version, in which the behaviour change was * introduced. |