f97cc0b62d
- Put extensionReceiver to candidate even if it's explicit (for sake of clarity) - Split CheckReceiver (dispatch part should only check nullability)
14 lines
262 B
Kotlin
Vendored
14 lines
262 B
Kotlin
Vendored
fun <E : String?, T : ((CharSequence) -> Unit)?> foo(x: E, y: T) {
|
|
if (x != null) {
|
|
<!INAPPLICABLE_CANDIDATE!>y<!>(x)
|
|
}
|
|
|
|
if (y != null) {
|
|
<!INAPPLICABLE_CANDIDATE!>y<!>(x)
|
|
}
|
|
|
|
if (x != null && y != null) {
|
|
y(x)
|
|
}
|
|
}
|