mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
13 lines
179 B
Kotlin
Vendored
13 lines
179 B
Kotlin
Vendored
// !DIAGNOSTICS:-UNUSED_VARIABLE
|
|
|
|
import kotlin.reflect.*
|
|
|
|
class A {
|
|
fun foo() {}
|
|
}
|
|
|
|
fun A?.foo() {}
|
|
|
|
val f: KFunction1<A, Unit> = A::foo
|
|
val g: KFunction1<A, Unit> = A?::foo
|