Files
kotlin/compiler/testData/diagnostics/tests/callableReference/function/extensionOnNullable.fir.kt

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