https://kotlinlang.org logo
y

yole

12/02/2016, 12:15 PM
a smart cast is applied when it is necessary to fix a type mismatch situation.
val ai = key
is not a type mismatch situation, so
ai
will be
Any