Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
Kilometer. But because both Mile and Kilometer represent an Int underneath, it’s possible to pass a Kilometer as input. As far as the compiler is concerned, we are passing integers around, so no error is raised. typealias Kilometer = Int typealias Mile = Int fun convertMileToKilometer(miles: Mile):