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:
committed by
Yan Zhulanow
parent
329f0227ec
commit
45d60baeb0
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user