Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/properties/privateFakeOverrideFromSuperclass.kt
Alexander Udalov 8f0885ca03 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"
2015-07-29 21:36:47 +03:00

9 lines
232 B
Kotlin
Vendored

import kotlin.reflect.*
open class A(private val p: Int)
class B : A(42)
fun box() =
if (B::class.memberProperties.isEmpty()) "OK"
else "Fail: invisible fake overrides should not appear in KClass.memberProperties"