Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
issue we mentioned with type aliases, where it was possible to pass a Kilometer or any Int as a Mile. @JvmInline value class Kilometer(val value: Int) @JvmInline value class Mile(val value: Int) fun convertMileToKilometer(miles: Mile): Kilometer { return Kilometer((miles.value * 1.6f).toInt()) } //