Add 'val KClass.declaredProperties', make getProperties a property
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ class A(param: String) {
|
||||
fun box(): String {
|
||||
val klass = javaClass<A>().kotlin
|
||||
|
||||
val props = klass.getProperties()
|
||||
val props = klass.properties
|
||||
|
||||
val names = props.map { it.name }.toSortedList()
|
||||
assert(names == listOf("anyVar", "int", "string")) { "Fail names: $props" }
|
||||
|
||||
Reference in New Issue
Block a user