Workaround KT-14531, Partial fix for KT-13600, KT-11620 J2K: Invalid conversion context on plain text pasting
For detailed info see KT-14531
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
public List<String> listOfPlatformType = new ArrayList<String>();
|
||||
|
||||
UnresolvedInterface<UnresolvedGeneric> unresolved = new UnresolvedImplementation<>(); // Should not add import
|
||||
|
||||
Map<ToBeImportedJava, ToBeImportedKotlin> hashMapOfNotImported = new HashMap<>();
|
||||
|
||||
void acceptKotlinClass(ToBeImportedKotlin tbi) {
|
||||
|
||||
}
|
||||
|
||||
void acceptJavaClass(ToBeImportedJava tbi) {
|
||||
|
||||
}
|
||||
|
||||
IAmbiguousKotlin ambiguousKotlin = new AmbiguousKotlin(); // Should not add import in case of 2 declarations in Kotlin
|
||||
IAmbiguous ambiguous = new Ambiguous(); // Should not add import in case of ambiguous declarations in Kotlin and in Java
|
||||
IAmbiguousJava ambiguousJava = new AmbiguousJava(); // Should not add import in case of 2 declarations in Java
|
||||
|
||||
void workWithStatics() {
|
||||
String a = TO_BE_IMPORTED_CONST;
|
||||
staticMethod();
|
||||
}
|
||||
Reference in New Issue
Block a user