Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
(Boolean) -> Unit class DataLoader(loadingCallback: LoadingCallback){ // some class } DataLoader(loadingCallback = { success -> // same usage as the underlying type }) Type aliases do not introduce a new type, but are equal to the underlying type they reference. Therefore it doesn’t guarantee true