Handle java ctor case for Introduce import alias inspection

#KT-35824 #EA-218654 Fixed
This commit is contained in:
Vladimir Dolzhenko
2020-01-07 22:17:32 +01:00
parent be65eed801
commit dc6adc805a
12 changed files with 121 additions and 5 deletions
+3
View File
@@ -0,0 +1,3 @@
HashMap1
UtilHashMap
JavaUtilHashMap
+5
View File
@@ -0,0 +1,5 @@
import java.util.HashMap
fun x() {
val list = <caret>HashMap<String, String>()
}
+5
View File
@@ -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
View File
@@ -0,0 +1,3 @@
import foo.Some
val some = <caret>Some()
+3
View File
@@ -0,0 +1,3 @@
import foo.Some as Some1
val some = Some1()