Files
kotlin-fork/idea/testData/quickfix/changeSignature/addFunctionParameterWithSmartcastedArgument.kt
T
Mikhail Zarechenskiy dc7678a700 Use smartcast info that related to call in change signature quick fix
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
2018-06-28 13:14:18 +03:00

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)
}
}