Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/extensionOnNullable.kt
T

14 lines
196 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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