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 df74102 commit 82fb399Copy full SHA for 82fb399
compiler/src/dotty/tools/dotc/report.scala
@@ -74,7 +74,7 @@ object report:
74
75
def gradualErrorOrMigrationWarning(msg: Message, pos: SrcPos = NoSourcePosition, warnFrom: SourceVersion, errorFrom: SourceVersion)(using Context): Unit =
76
if sourceVersion.isAtLeast(errorFrom) then errorOrMigrationWarning(msg, pos, errorFrom)
77
- else if sourceVersion.isAtLeast(warnFrom) then warning(msg, pos)
+ else if sourceVersion.ordinal >= warnFrom.ordinal then warning(msg, pos)
78
79
def restrictionError(msg: Message, pos: SrcPos = NoSourcePosition)(using Context): Unit =
80
error(msg.mapMsg("Implementation restriction: " + _), pos)
0 commit comments