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

16 lines
201 B
Kotlin
Vendored

// !CHECK_TYPE
import kotlin.reflect.KMemberFunction0
fun foo() {}
class A {
fun foo() {}
fun main() {
val x = ::foo
checkSubtype<KMemberFunction0<A, Unit>>(x)
}
}