e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
32 lines
540 B
Kotlin
Vendored
32 lines
540 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.<!INVISIBLE_MEMBER!>foo<!> { }
|
|
|
|
b.foo { }
|
|
|
|
if (a is B) {
|
|
<!DEBUG_INFO_SMARTCAST!>a<!>.foo {}
|
|
}
|
|
|
|
if (d.x is B) {
|
|
<!SMARTCAST_IMPOSSIBLE{OI}!>d.x<!>.<!INVISIBLE_MEMBER{NI}!>foo<!> {}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun baz(a: A) {
|
|
a.<!INVISIBLE_MEMBER!>foo<!> { }
|
|
}
|