blob: 0876f8e53a1f0fa42faff5e47f17a395c504dcda (
plain)
1
2
3
4
5
6
|
// AFTER-WARNING: Elvis operator (?:) always returns the left operand of non-nullable type Int
// AFTER-WARNING: Parameter 'v' is never used
fun test() {
foo(false) ?: return
}
fun foo(v: Boolean): Int = 1
|