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 6a93dd0 commit eb1908aCopy full SHA for eb1908a
src/dotty/tools/dotc/reporting/Reporter.scala
@@ -106,6 +106,9 @@ trait Reporting { this: Context =>
106
reporter.report(new Error(msg, pos))
107
}
108
109
+ def errorOrMigrationWarning(msg: => String, pos: SourcePosition = NoSourcePosition): Unit =
110
+ if (ctx.scala2Mode) migrationWarning(msg, pos) else error(msg, pos)
111
+
112
def restrictionError(msg: => String, pos: SourcePosition = NoSourcePosition): Unit =
113
error(s"Implementation restriction: $msg", pos)
114
0 commit comments