Add import for member: don't suggest if a class with the same name has been imported

#KT-38492 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-05-02 12:01:21 +09:00
committed by Yan Zhulanow
parent 329f0227ec
commit 45d60baeb0
4 changed files with 67 additions and 6 deletions
@@ -0,0 +1,22 @@
// IS_APPLICABLE: false
package foo.bar
import foo.bar.A.SUCCESS
fun test() {
foo(SUCCESS)
bar(B.SUCCESS<caret>)
}
fun foo(a: A) {}
fun bar(b: B) {}
enum class A {
SUCCESS, ERROR
}
enum class B {
SUCCESS, ERROR
}
@@ -0,0 +1,22 @@
// IS_APPLICABLE: false
package foo.bar
import foo.bar.A.*
fun test() {
foo(SUCCESS)
bar(B.SUCCESS<caret>)
}
fun foo(a: A) {}
fun bar(b: B) {}
enum class A {
SUCCESS, ERROR
}
enum class B {
SUCCESS, ERROR
}