[kotlin] Run import optimizer when no usages are found

Fixes the issue in Kotlin, Java and Groovy. #KTIJ-28288 Fixed

GitOrigin-RevId: 7cd5942539a10f9ccdba386396f15546b0a9ac00
This commit is contained in:
Bart van Helvert
2024-01-11 18:32:37 +01:00
committed by intellij-monorepo-bot
parent f33959ccc5
commit dc11424f70
36 changed files with 154 additions and 33 deletions

View File

@@ -0,0 +1,7 @@
package pack2;
public class X {
public static void main(String[] args) {
Y().foo();
}
}

View File

@@ -0,0 +1,5 @@
package pack2;
public class Y {
void foo() { }
}

View File

@@ -0,0 +1,9 @@
package pack1;
import pack2.Y;
public class X {
public static void main(String[] args) {
Y().foo();
}
}

View File

@@ -0,0 +1,5 @@
package pack2;
public class Y {
void foo() { }
}