[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
// !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.<!INAPPLICABLE_CANDIDATE!>foo<!> { }
|
||||
}
|
||||
Reference in New Issue
Block a user