Fix addition of wrong java.lang imports on optimize imports

Add check to star importer, to not import already imported fqNames
 #KT-15273 fixed
This commit is contained in:
Simon Ogorodnik
2017-04-17 16:48:57 +03:00
parent dd4a5944f1
commit 9ca65fcf99
4 changed files with 31 additions and 1 deletions
@@ -0,0 +1,11 @@
// NAME_COUNT_TO_USE_STAR_IMPORT: 1
// RUNTIME_WITH_FULL_JDK
import java.lang.Character.*
/**
* [String]
*/
fun String.some() {
System.out
UPPERCASE_LETTER
}
@@ -0,0 +1,11 @@
// NAME_COUNT_TO_USE_STAR_IMPORT: 1
// RUNTIME_WITH_FULL_JDK
import java.lang.Character.UPPERCASE_LETTER
/**
* [String]
*/
fun String.some() {
System.out
UPPERCASE_LETTER
}