Files
kotlin-fork/idea/testData/quickfix/changeSignature/addFunctionParameterWithSmartcastedArgument.kt.after
T
Dmitry Gridin 22a73bc09d ChangeFunctionSignatureFix: fix wrong result
#KT-32001 Fixed
2019-06-19 18:52:53 +07:00

15 lines
317 B
Plaintext
Vendored

// "Add parameter to function 'doSmthWithChild'" "true"
// DISABLE-ERRORS
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
interface Parent
interface Child : Parent
fun doSmthWithChild(a: Child, i: Int) {}
fun foobar(parent: Parent) {
if (parent is Child) {
doSmthWithChild(parent, <caret>123)
}
}