dc7678a700
There is an inconsistency on how we record smartcasts in old and new inference, but we definitely should use all possible information about smartcasts in quick-fixes #KT-25144 Fixed
15 lines
316 B
Kotlin
Vendored
15 lines
316 B
Kotlin
Vendored
// "Change the signature of function 'doSmthWithChild'" "true"
|
|
// DISABLE-ERRORS
|
|
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
|
|
|
interface Parent
|
|
interface Child : Parent
|
|
|
|
fun doSmthWithChild(a: Child) {}
|
|
|
|
fun foobar(parent: Parent) {
|
|
if (parent is Child) {
|
|
doSmthWithChild(parent, <caret>123)
|
|
}
|
|
}
|