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:
Vendored
+2
-2
@@ -4,5 +4,5 @@ open class A(private val p: Int)
|
||||
class B : A(42)
|
||||
|
||||
fun box() =
|
||||
if (B::class.properties.isEmpty()) "OK"
|
||||
else "Fail: invisible fake overrides should not appear in KClass.properties"
|
||||
if (B::class.memberProperties.isEmpty()) "OK"
|
||||
else "Fail: invisible fake overrides should not appear in KClass.memberProperties"
|
||||
|
||||
Reference in New Issue
Block a user