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:
Mikhail Zarechenskiy
2018-06-27 16:20:45 +03:00
parent 698096f13e
commit dc7678a700
4 changed files with 37 additions and 1 deletions
@@ -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)
}
}