blob: cdde2f57f6cce744da28de5e92afb1ffbde132f8 [file] [log] [blame]
// TARGET_BACKEND: JVM
// FILE: JavaClass.java
public class JavaClass {
private boolean value;
public boolean isValue() {
return value;
}
public void setValue(Boolean value) {
this.value = value;
}
}
// FILE: kotlin.kt
fun box(): String {
val javaClass = JavaClass()
if (javaClass.isValue != false) return "fail 1"
javaClass.isValue = true
if (javaClass.isValue != true) return "fail 2"
return "OK"
}