Inline: more accurate handling of type arguments

Partial revert of b8cc7c2ca6
Soften requirements in remove type arguments intention in this mode
So #KT-17622 Fixed
Related to KT-17623
This commit is contained in:
Mikhail Glukhikh
2017-05-26 17:53:15 +03:00
parent 38d6c597a3
commit 9c15db93d9
4 changed files with 39 additions and 10 deletions
@@ -0,0 +1,6 @@
fun foo(f: List<Int>) {}
fun f() {
val v : List<Int> = ArrayList(listOf())
foo(<caret>v)
}
@@ -0,0 +1,5 @@
fun foo(f: List<Int>) {}
fun f() {
foo(ArrayList<Int>(listOf()))
}