report 'break' and 'continue' inside 'when' as errors (even if 'when' is nested in a loop)

This commit is contained in:
Dmitry Jemerov
2015-03-30 20:44:31 +02:00
committed by Andrey Breslav
parent 8ab12e217d
commit 252c4118eb
8 changed files with 77 additions and 2 deletions
@@ -0,0 +1,6 @@
package
internal fun breakContinueInWhen(/*0*/ i: kotlin.Int): kotlin.Unit
internal fun breakContinueInWhenWithDoWhile(/*0*/ i: kotlin.Int, /*1*/ j: kotlin.Int): kotlin.Unit
internal fun breakContinueInWhenWithWhile(/*0*/ i: kotlin.Int, /*1*/ j: kotlin.Int): kotlin.Unit
internal fun labeledBreakContinue(/*0*/ i: kotlin.Int): kotlin.Unit