b2fa104081
Previously, when a candidate was found with an applicability that is better than the current best applicability, all previous candidates were thrown away. Now we keep them, unless the new applicability is successful. If no successful candidates are found, we fully resolve all the unsuccessful ones and select the ones with the least bad applicability. This improves diagnostics for unresolved calls. #KT-57844 Fixed
27 lines
583 B
Kotlin
Vendored
27 lines
583 B
Kotlin
Vendored
// SKIP_TXT
|
|
|
|
// FILE: MyJClass.java
|
|
|
|
public class MyJClass {
|
|
public void meth(int pathname) {}
|
|
private void meth(String pathname, int prefixLength) {}
|
|
private void meth(String child, boolean b) {}
|
|
}
|
|
|
|
// FILE: MyJClass2.java
|
|
|
|
public class MyJClass2 {
|
|
public void meth(int pathname) {}
|
|
public void meth(String pathname, int prefixLength) {}
|
|
private void meth(String child, boolean b) {}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun test1(myJClass: MyJClass) {
|
|
myJClass.meth(<!TYPE_MISMATCH!>""<!>)
|
|
}
|
|
|
|
fun test2(myJClass: MyJClass2) {
|
|
myJClass.meth(<!TYPE_MISMATCH!>""<!>)
|
|
} |