Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/noAmbiguityBetweenTopLevelAndMemberProperty.kt
T
2020-03-19 09:51:01 +03:00

15 lines
313 B
Kotlin
Vendored

import kotlin.reflect.KProperty0
import kotlin.reflect.KProperty1
fun <R> property(property: KProperty0<R>): Int = 1
fun <T, R> property(property: KProperty1<T, R>): String = ""
val subject = ""
class O {
val subject = ""
}
val someProperty0 = property(::subject)
val someProperty1 = property(O::subject)