var _age: Int? = 0 public var isAdult: Boolean? = false get() = _age?.compareTo(18) >= 0
This still gives me a null-safety, compile error,
Also can try this:
var position = 100 mArrayList?.let { if (it.size > 0 && position >= 0 ) return true }