Join Slack
Powered by
Err no, the point is that the compiler doesn't loo...
# announcements
k
karelpeeters
12/19/2017, 8:27 AM
Err no, the point is that the compiler doesn't look in getters, so consider this scenario:
val prop: Any get() = if (Math.random() < .5) "hello" else 5
. Your code wouldn't be correct.
3
Views
Open in Slack
Previous
Next