mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
13 lines
178 B
Kotlin
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>>}
|
|
} |