https://kotlinlang.org logo
#codereview
Title
# codereview
a

Andreas Sinz

08/12/2018, 7:47 PM
@antoin_m and the
as T
-cast is needed, because the return type of your
when
is
Vec
and not
T
Kotlin compiler would need to take the surroundings into account when analyzing a
when
-expression, but yes thats theoretically possible
a

antoin_m

08/13/2018, 7:41 AM
I see, thanks guys! I’ll hope for this to be fixed one day even though there are probably bigger issues 😉
2 Views