Erik
06/11/2021, 10:11 AMandroid { kotlinOptions { languageVersion = "1.5" } } in my module's build.gradle file?
Also, I wonder if this feature is documented somewhere (and where, of course).
fun a(b: () -> Unit): Unit = TODO()
fun f(): Any? = TODO()
val p = a(::f) // OK
val g: KFunction0<Any?> = ::f
val q = a(g) // Fails: The feature "unit conversion" is disabled
val h: () -> Any? = ::f
val r = a(h) // Fails: The feature "unit conversion" is disabled