Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/kt47621.kt
T
2022-07-11 12:44:06 +00:00

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"
}