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:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import kotlin.reflect.KExtensionProperty
|
||||
import kotlin.reflect.KProperty1
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
fun check(expected: String, p: KExtensionProperty<*, *>) {
|
||||
fun check(expected: String, p: KProperty1<*, *>) {
|
||||
var s = p.toString()
|
||||
|
||||
// Strip "val" or "var"
|
||||
|
||||
Reference in New Issue
Block a user