Is there any difference (at runtime) between ``` i...
# announcements
r
Is there any difference (at runtime) between
Copy code
import javafx.scene.paint.Color`
and
Copy code
typealias Color = javafx.scene.paint.Color
t
AFAIK there is no difference at runtime (at least for the JVM), it is just an alias for an existing type. The only difference is see is that
typealias
declarations must be imported if they are defined in another package. But still, typealiases are a Kotlin-specific feature that is not ported to the JVM (with the exception of metadata, that are visible as an annotation in the compiled code for use with Kotlin's reflection).