13 lines
291 B
Kotlin
Vendored
13 lines
291 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-557 Wrong type inference near sure extension function
|
|
|
|
fun <T : Any> T?.sure() : T = this!!
|
|
|
|
fun Array<String>.length() : Int {
|
|
return 0;
|
|
}
|
|
|
|
fun test(array : Array<String?>?) {
|
|
array?.sure<Array<String?>>().<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>length<!>()
|
|
}
|