Files
kotlin/compiler/testData/diagnostics/testsWithStdLib/callableReference/property/samePriorityForFunctionsAndProperties.kt
Svetlana Isakova 62c8a6f79a Fixed resolve for callable references
functions and properties have the same priority
2014-12-27 00:55:22 +03:00

13 lines
178 B
Kotlin

// !CHECK_TYPE
import kotlin.reflect.KMemberProperty
class C {
val baz: Int = 12
}
fun Int.baz() {}
fun test() {
C::baz checkType { it : _<KMemberProperty<C, Int>>}
}