4b3ffd9418
#KT-10045 Fixed
31 lines
486 B
Kotlin
Vendored
31 lines
486 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.<!INVISIBLE_MEMBER!>foo<!> { }
|
|
|
|
b.foo { }
|
|
|
|
if (a is B) {
|
|
<!DEBUG_INFO_SMARTCAST!>a<!>.foo {}
|
|
}
|
|
|
|
if (d.x is B) {
|
|
<!SMARTCAST_IMPOSSIBLE!>d.x<!>.foo {}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun baz(a: A) {
|
|
a.<!INVISIBLE_MEMBER!>foo<!> { }
|
|
}
|