Files
Vladimir Dolzhenko 1734a04d83 [kotlin] Add after-warnings for intention test data
GitOrigin-RevId: 6124edbaebaf204f9e40b0f510ffc03209a46f6c
2021-09-22 16:12:45 +00:00

6 lines
224 B
Plaintext

// AFTER-WARNING: Parameter 's' is never used, could be renamed to _
// AFTER-WARNING: Variable 'p' is never used
fun test(i: Int) {
val p: (String) -> Boolean =
if (i == 1) { { true } } else { { s -> false } }
}