Join Slack
Powered by
<@U5G56CL87> and the `as T`-cast is needed, becaus...
# 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
Andreas Sinz
08/12/2018, 9:15 PM
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
Open in Slack
Previous
Next