DEV Community

Discussion on: Kotlin Typealiases

Collapse
 
jillesvangurp profile image
Jilles van Gurp

One useful feature with type aliases is that they support extension functions as well.

An alias does not introduce a new type; for the compiler it is equivalent to using the aliased type. So, it does check the type but just not that you use the alias consistently.