Skip to content

Commit 69b7a48

Browse files
committed
Update migration warning message
1 parent c3cf035 commit 69b7a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/NonLocalReturns.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class NonLocalReturns extends MiniPhase {
9797
override def transformReturn(tree: Return)(using Context): Tree =
9898
if isNonLocalReturn(tree) then
9999
report.gradualErrorOrMigrationWarning(
100-
em"Non local returns are no longer supported; use `boundary` and `break` in `scala.util` instead",
100+
em"Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead",
101101
tree.srcPos,
102102
warnFrom = `3.2`,
103103
errorFrom = future)

0 commit comments

Comments
 (0)