Fix caret after "Introduce import alias" if invoke in import directive

#KT-30833 Fixed
This commit is contained in:
Dmitry Gridin
2019-04-05 20:23:36 +07:00
parent 814aca9c8b
commit b45aeda711
7 changed files with 32 additions and 6 deletions
@@ -9,6 +9,6 @@ class Outer {
class Test() {
fun test() {
val i = Middle1.Inner()
val i = Middle<caret>1.Inner()
}
}
@@ -13,6 +13,6 @@ class Outer {
class Test() {
fun test() {
val foo = 1
foo1()
foo<caret>1()
}
}
@@ -14,7 +14,7 @@ class Outer {
class Test() {
fun test() {
val i = foo1()
val i = foo<caret>1()
}
fun test2() {
@@ -0,0 +1,9 @@
package test
import test.Foo<caret>
class Foo
fun main() {
Foo()
}
@@ -0,0 +1,9 @@
package test
import test.Foo as <caret>Foo1
class Foo
fun main() {
Foo1()
}