Handle java ctor case for Introduce import alias inspection
#KT-35824 #EA-218654 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
HashMap1
|
||||
UtilHashMap
|
||||
JavaUtilHashMap
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import java.util.HashMap
|
||||
|
||||
fun x() {
|
||||
val list = <caret>HashMap<String, String>()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import java.util.HashMap as HashMap1
|
||||
|
||||
fun x() {
|
||||
val list = HashMap1<String, String>()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
class Some {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Some1
|
||||
FooSome
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import foo.Some
|
||||
|
||||
val some = <caret>Some()
|
||||
@@ -0,0 +1,3 @@
|
||||
import foo.Some as Some1
|
||||
|
||||
val some = Some1()
|
||||
Reference in New Issue
Block a user