mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
11 lines
157 B
Kotlin
11 lines
157 B
Kotlin
import kotlin.reflect.*
|
|
|
|
class A {
|
|
fun f(s: String) { }
|
|
}
|
|
|
|
fun useRef(a: A, s: String) {
|
|
val toCall: KFunction1<String, Unit> = a::f
|
|
toCall(s)
|
|
}
|