Files
Ivan Kylchik 574aa0affe [FIR] Fix synthetic property is not var due to Nullable on parameter
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
2020-07-06 17:52:37 +03:00

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