574aa0affe
Synthetic property is var when it have setter. The latter is set up in property when its parameter type is equal to getter return type. In case of using @Nullable, parameter type of setter is not equal to return type of getter, because the latter is flexible type. So to fix this verification should occur using not null types #KT-39076 Fixed
13 lines
291 B
Kotlin
Vendored
13 lines
291 B
Kotlin
Vendored
// FILE: JavaClass.java
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
public class JavaClass {
|
|
private String myFoo = "";
|
|
public String getFoo() { return myFoo; }
|
|
public void setFoo(@Nullable String s) { myFoo = s; }
|
|
}
|
|
|
|
// FILE: main.kt
|
|
fun main(j: JavaClass) {
|
|
j.foo += "OK"
|
|
} |