Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/extensionOnNullable.kt
T
2015-05-26 14:27:40 +03:00

13 lines
194 B
Kotlin
Vendored

// !DIAGNOSTICS:-UNUSED_VARIABLE
import kotlin.reflect.*
class A {
fun foo() {}
}
fun A?.foo() {}
val f: KMemberFunction0<A, Unit> = A::foo
val g: KExtensionFunction0<A, Unit> = A?::foo