Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.fir.kt
T
Denis.Zharkov 2ecba6ac39 Remove WITH_NEW_INFERENCE directive from all tests
This directive anyway does not make test run twice with OI, and with NI
It only once run the test with specific settings (// LANGUAGE)
and ignores irrelevant (OI or NI tags)
2021-05-25 13:28:26 +03:00

31 lines
412 B
Kotlin
Vendored

// 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.<!INVISIBLE_REFERENCE!>foo<!> { }
}