Shorten References: Allow import insertion when function and property have the same name

#KT-22745 Fixed
This commit is contained in:
Alexey Sedunov
2018-02-27 19:15:14 +03:00
parent df4cd14161
commit df4c80f43a
8 changed files with 40 additions and 4 deletions
@@ -0,0 +1,8 @@
import foo.name
val name = ""
fun main(args: Array<String>) {
name
name()
}
@@ -0,0 +1,7 @@
val name = ""
fun <caret>name() {}
fun main(args: Array<String>) {
name
name()
}
@@ -0,0 +1,5 @@
{
"mainFile": "test.kt",
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
"targetPackage": "foo"
}