f283f2db43
Also introduce few new diagnostics: - NONE_APPLICABLE more many inapplicable candidates - HIDDEN for visible candidates
32 lines
422 B
Kotlin
Vendored
32 lines
422 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// FILE: abc/A.java
|
|
package abc;
|
|
public class A {
|
|
protected void foo(Runnable x) {}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
import abc.A;
|
|
|
|
class Data(var x: A)
|
|
|
|
class B : A() {
|
|
fun baz(a: A, b: B, d: Data) {
|
|
a.foo { }
|
|
|
|
b.foo { }
|
|
|
|
if (a is B) {
|
|
a.foo {}
|
|
}
|
|
|
|
if (d.x is B) {
|
|
d.x.foo {}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun baz(a: A) {
|
|
a.<!HIDDEN!>foo<!> { }
|
|
}
|