15 lines
309 B
Kotlin
Vendored
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)
|
|
}
|
|
}
|