f97cc0b62d
- Put extensionReceiver to candidate even if it's explicit (for sake of clarity) - Split CheckReceiver (dispatch part should only check nullability)
14 lines
209 B
Kotlin
Vendored
14 lines
209 B
Kotlin
Vendored
fun <T : Any?> foo(x: T) {
|
|
if (x is String?) {
|
|
x.<!INAPPLICABLE_CANDIDATE!>length<!>
|
|
|
|
if (x != null) {
|
|
x.length
|
|
}
|
|
}
|
|
|
|
if (x is String) {
|
|
x.length
|
|
}
|
|
}
|