mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
Leave only 3*2 = 6 classes: KProperty0, KProperty1, KProperty2 and their mutable analogs, depending on the number of receivers a property takes
14 lines
167 B
Kotlin
Vendored
14 lines
167 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
import kotlin.reflect.KProperty1
|
|
|
|
class C {
|
|
val baz: Int = 12
|
|
}
|
|
|
|
fun Int.baz() {}
|
|
|
|
fun test() {
|
|
C::baz checkType { _<KProperty1<C, Int>>() }
|
|
}
|