Skip to content

Commit 211ddb7

Browse files
committed
Deprecate NonLocalReturns object
1 parent cf8daf0 commit 211ddb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/scala/util/control/NonLocalReturns.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package scala.util.control
1717
* performant, since returns within the scope of the same method can be
1818
* rewritten by the compiler to jumps.
1919
*/
20+
@deprecated("Use scala.util.boundary and scala.util.break instead", "3.3")
2021
object NonLocalReturns {
2122
@deprecated("Use scala.util.boundary.Break instead", "3.3")
2223
class ReturnThrowable[T] extends ControlThrowable {

0 commit comments

Comments
 (0)