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

11 lines
252 B
Plaintext

// AFTER-WARNING: Parameter 's' is never used
fun test(v: Boolean): (String) -> Int {
return when (v) {
true -> { { taskOne(it) } }
false -> { x -> taskTwo(x) }
}
}
fun taskOne(s: String) = s.length
fun taskTwo(s: String) = 42