KT-16076 Completion inserts FQN kotlin.text.String

KT-14831 Don't add import statement and FQN on converting lambda to reference if typealias is used
KT-16088 Completion wrongly inserts FQN for `kotlin` package
 #KT-16076 fixed
 #KT-14831 fixed
 #KT-16088 fixed
This commit is contained in:
Simon Ogorodnik
2017-02-06 22:25:21 +03:00
parent fee676a281
commit 2490318f93
21 changed files with 216 additions and 24 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
package test
typealias Global = String
fun usesGlobal(p: List<Global>) {
p.map { <caret>it.toUpperCase() }
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
package test
typealias Global = String
fun usesGlobal(p: List<Global>) {
p.map(Global::toUpperCase)
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
package test
typealias Global = List<String>
fun usesGlobal(p: List<Global>) {
p.map { <caret>it.isEmpty() }
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
package test
typealias Global = List<String>
fun usesGlobal(p: List<Global>) {
p.map(Global::isEmpty)
}