Closed tomwyr closed 2 years ago
Same issue but slightly different code:
class Simple {
var number = Wrapper.intHolder.intValue
fun updateNumber() {
number = 5
}
}
object Wrapper {
val intHolder = IntHolder()
}
class IntHolder {
val intValue = 1
}
@chippmann
Following snippet produces a warning which doesn't seem to be correct:
gives a warning on
number = 5.0
:The warning shows up only, if the
Int
->Double
type conversion happens duringnumber
initialization.