We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe3765 commit 9a828b8Copy full SHA for 9a828b8
compiler/src/dotty/tools/dotc/config/Feature.scala
@@ -72,7 +72,9 @@ object Feature:
72
*/
73
def warnOnMigration(msg: Message, pos: SourcePosition,
74
version: SourceVersion = defaultSourceVersion)(using Context): Boolean =
75
- if sourceVersion.isMigrating && sourceVersion.stable == version then
+ if sourceVersion.isMigrating && sourceVersion.stable == version
76
+ || version == `3.0` && migrateTo3
77
+ then
78
ctx.migrationWarning(msg, pos)
79
true
80
else
0 commit comments