Files
kotlin-fork/idea/testData/quickfix/changeSignature/addFunctionParameterWithSmartcastedArgument.kt
T
2019-05-31 18:00:56 +07:00

15 lines
309 B
Kotlin
Vendored

// "Add parameter to 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)
}
}