https://kotlinlang.org logo
#random
Title
k

karelpeeters

07/10/2017, 12:06 AM
It is obvious (to us) that everything after the return statement can be considered the else branch of the if, and so smart casting should behave identically to how it would behave if there was an actual else branch.
👍 1