[FIR] Forbid multiple labels per statement
^KT-53629: Fixed
This commit is contained in:
committed by
Space Team
parent
cd5b38b958
commit
d27adf6677
+10
@@ -0,0 +1,10 @@
|
||||
// K2: See KT-65342
|
||||
|
||||
fun test() {
|
||||
<!MULTIPLE_LABELS_ARE_FORBIDDEN!>a@<!> b@ while(true) {
|
||||
val f = {
|
||||
return@a
|
||||
}
|
||||
break@b
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user