22a73bc09d
#KT-32001 Fixed
15 lines
317 B
Plaintext
Vendored
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)
|
|
}
|
|
}
|