[LL FIR, Java] fix resolve contract violation from java symbol provider from permits
To create a smart psi type pointer, IJ Platform uses resolve We cannot use resolve from JavaSymbolProvider, as it may lead to resolve contract violation ^KT-59243 Fixed
This commit is contained in:
committed by
Space Team
parent
5af8b9e819
commit
7631e90f12
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// FILE: useSite.kt
|
||||
|
||||
import InspectionProfileImpl.INIT_INSPECTIONS
|
||||
|
||||
fun foo(): Int = 4
|
||||
|
||||
// FILE: InspectionProfileImpl.java
|
||||
import static Configuration.StaticConfigurationClass
|
||||
|
||||
public abstract sealed class InspectionProfileImpl permits StaticConfigurationClass {
|
||||
public static boolean INIT_INSPECTIONS;
|
||||
}
|
||||
|
||||
// FILE: Configuration.java
|
||||
public class Configuration implements KotlinInterface {
|
||||
public static class StaticConfigurationClass {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: KotlinInterface.kt
|
||||
interface KotlinInterface {
|
||||
var selectedOptions: Int
|
||||
}
|
||||
Reference in New Issue
Block a user