fb21937eb1
^KT-47621 Fixed
23 lines
362 B
Kotlin
Vendored
23 lines
362 B
Kotlin
Vendored
// WITH_STDLIB
|
|
|
|
// FILE: j/J.java
|
|
package j;
|
|
|
|
public class J {
|
|
public int getX() { return 1; }
|
|
protected void setX(int value) { throw new RuntimeException(); }
|
|
}
|
|
|
|
// FILE: main.kt
|
|
import j.*
|
|
|
|
class C : J() {
|
|
fun foo() {
|
|
J()<!UNNECESSARY_SAFE_CALL!>?.<!><!INVISIBLE_SETTER!>x<!> = 1
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
C().foo()
|
|
return "OK"
|
|
} |