Версия jdk: jdk-8u371
Версия ОС: win10
код:
Код: Выделить всё
import scala.util.control.Breaks.{break, breakable}
object TestScala {
def main(args: Array[String]) {
a
}
def a {
breakable {
for (i 13) break
^
Код: Выделить всё
1
11
12
13
2
11
12
13
3
11
12
13
Подробнее здесь: https://stackoverflow.com/questions/792 ... r-function
Мобильная версия