hi guys, i've got a quick question about the usage...
# getting-started
c
hi guys, i've got a quick question about the usage of
when
which bothers me a bit... so this is OK:
Copy code
val result = resultOfBigCalculation()
when (result) {
    is SomeResult -> result.propertyOfSomeResult // smart cast FTW
}
but this doesnt seem to work in kotlin, right? or am i missing something...? any idea would be much appreciated 🙂
Copy code
when (resultOfBigCalculation()) {
    is SomeResult -> it.propertyOfSomeResult // no "it" available or other means to access the result
}