Ilya Nothen
12/13/2022, 6:11 PMmarcinmoskala
12/27/2022, 8:33 PMfun main() {
val f: (String) -> Unit = { s: String -> }
val c = f::class
println(c)
}
However, it is not possible to create an instance this way, and it should not be. Except for the lack usefullness of such an instance, it it an interface. We create instances of classes, not interfaces. Tell me what do you need to do and we might find a solution.