You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve migration messages, make the compiler print the migration version by default, adjust usage of @migration to correspond to @deprecated and make -Xmigration configurable with a threshold
#4990
Closed
scabug opened this issue
Sep 12, 2011
· 6 comments
The @migration can now be used like @Deprecation, old syntax is still supported, but deprecated.
Xmigration accepts a version string like "2.8" now. This will show only migration warnings since that version. Default is "2.9".
Improved the wording and the consistency of most migration messages, migration warnings now also show the version the change occurred.
=====================
I only have one problem with that solution left:
Paul suggested that I change -Xmigration from BooleanSetting to ChoiceSetting, but although I can set a default value scala/scalac don't accept "-Xmigration" without a value anymore. I would have expected that "-Xmigration" would be accepted and the default value to be chosen if no argument to -Xmigration was given.
Maybe someone can give me a hint on how to make -Xmigration behave that way ...
@paulp said:
"Someone", are you expecting to find someone other than me? I don't know if it needs further changes, I don't have time to look at it yet.
The title actually tells everyting.
The text was updated successfully, but these errors were encountered: