The way I tried was this: ``` fun <T> test(f...
# getting-started
r
The way I tried was this:
Copy code
fun <T> test(func: Any): T {
    when(func) {
        is KFunction1<String, Unit> -> func("Test")
    }
}