We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3cf035 commit 69b7a48Copy full SHA for 69b7a48
compiler/src/dotty/tools/dotc/transform/NonLocalReturns.scala
@@ -97,7 +97,7 @@ class NonLocalReturns extends MiniPhase {
97
override def transformReturn(tree: Return)(using Context): Tree =
98
if isNonLocalReturn(tree) then
99
report.gradualErrorOrMigrationWarning(
100
- em"Non local returns are no longer supported; use `boundary` and `break` in `scala.util` instead",
+ em"Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead",
101
tree.srcPos,
102
warnFrom = `3.2`,
103
errorFrom = future)
0 commit comments