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.
2 parents 55f5e47 + 6ddd990 commit 3103bbdCopy full SHA for 3103bbd
src/library/scala/util/control/Breaks.scala
@@ -73,7 +73,7 @@ class Breaks {
73
*
74
* @note This might be different than the statically closest enclosing block!
75
*/
76
- def break() { throw breakException }
+ def break(): Nothing = { throw breakException }
77
}
78
79
/** An object that can be used for the break control abstraction.
0 commit comments