Fix InsertExplicitTypeArguments intention to insert imports for shortened types

#KT-5489 Fixed
This commit is contained in:
Pavel V. Talanov
2014-07-16 21:53:16 +04:00
parent 0462a018c5
commit 1bc0a9dfd9
4 changed files with 28 additions and 10 deletions
@@ -0,0 +1,7 @@
fun foo(c: kotlin.support.AbstractIterator<kotlin.concurrent.FunctionalList<Int>>) {
ba<caret>r(c)
}
fun <T> bar(t: T): T = t
// WITH_RUNTIME
@@ -0,0 +1,10 @@
import kotlin.concurrent.FunctionalList
import kotlin.support.AbstractIterator
fun foo(c: kotlin.support.AbstractIterator<kotlin.concurrent.FunctionalList<Int>>) {
bar<AbstractIterator<FunctionalList<Int>>>(c)
}
fun <T> bar(t: T): T = t
// WITH_RUNTIME