KT-22274 report warning on labels that can't be referenced
Labels are meaningful only if they can be referenced by 'break', 'continue', or 'return' expressions.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
fun f(s : String?) : Boolean {
|
||||
return foo@(s?.equals("a"))!!
|
||||
return <!REDUNDANT_LABEL_WARNING!>foo@<!>(s?.equals("a"))!!
|
||||
}
|
||||
Reference in New Issue
Block a user