Simplify property hierarchy in reflection
Leave only 3*2 = 6 classes: KProperty0, KProperty1, KProperty2 and their mutable analogs, depending on the number of receivers a property takes
This commit is contained in:
Vendored
+2
-2
@@ -1,11 +1,11 @@
|
||||
// This test was adapted from compiler/testData/codegen/boxWithStdlib/callableReference/property/.
|
||||
package foo
|
||||
|
||||
import kotlin.reflect.KMemberProperty
|
||||
import kotlin.reflect.KProperty1
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
val ref: KMemberProperty<A, String> = A::foo
|
||||
val ref: KProperty1<A, String> = A::foo
|
||||
}
|
||||
|
||||
val foo: String = "OK"
|
||||
|
||||
Reference in New Issue
Block a user