Use smartcast info that related to call in change signature quick fix
There is an inconsistency on how we record smartcasts in old and new inference, but we definitely should use all possible information about smartcasts in quick-fixes #KT-25144 Fixed
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// "Change the signature of 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user