14 lines
238 B
Kotlin
Vendored
14 lines
238 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
import kotlin.reflect.*
|
|
|
|
fun <T> checkSubtype(t: T) = t
|
|
|
|
class A(var g: A) {
|
|
val f: Int = 0
|
|
|
|
fun test() {
|
|
checkSubtype<KProperty1<A, Int>>(A::f)
|
|
checkSubtype<KMutableProperty1<A, A>>(A::g)
|
|
}
|
|
}
|