Files
kotlin-fork/compiler/testData/diagnostics/tests/deparenthesize/labeledSafeCall.kt
T
Dmitry Petrov df6d4f358a 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.
2018-07-25 12:08:20 +03:00

3 lines
96 B
Kotlin
Vendored

fun f(s : String?) : Boolean {
return <!REDUNDANT_LABEL_WARNING!>foo@<!>(s?.equals("a"))!!
}