Rename KClass.properties and extensionProperties: prepend 'member'

To better emphasize the fact that all returned properties require an instance
of the class they are declared in. Another issue was that
'Some::class.extensionProperties' was sometimes incorrectly perceived as
"get all extension properties available on the class Some"
This commit is contained in:
Alexander Udalov
2015-07-23 22:37:08 +03:00
parent 6b24cfa3e4
commit 8f0885ca03
22 changed files with 53 additions and 36 deletions
@@ -7,7 +7,7 @@ class A(private var result: String)
fun box(): String {
val a = A("abc")
val p = A::class.declaredProperties.single() as KMutableProperty1<A, String>
val p = A::class.declaredMemberProperties.single() as KMutableProperty1<A, String>
p.accessible = true
assertEquals("abc", p.call(a))
assertEquals(Unit, p.setter.call(a, "def"))