Join Slack
Hey :slightly_smiling_face: Is there a better way to do something like this? `testVec2` is indeed o...
# codereview
a
antoin_m
08/12/2018, 2:21 PM
Hey 🙂 Is there a better way to do something like this?
testVec2
is indeed of type
Vec2
and
testVec3
of type
Vec3
but I don't get why the explicit cast is necessary nor the else branch since Vec is a sealed class...
Untitled.kt
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by