mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
16 lines
477 B
Kotlin
16 lines
477 B
Kotlin
// "Add parameter to function 'doSmthWithChild'" "true"
|
|
// DISABLE-ERRORS
|
|
|
|
interface Parent
|
|
interface Child : Parent
|
|
|
|
fun doSmthWithChild(a: Child) {}
|
|
|
|
fun foobar(parent: Parent) {
|
|
if (parent is Child) {
|
|
doSmthWithChild(parent, <caret>123)
|
|
}
|
|
}
|
|
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$ParameterQuickFix |