mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
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"
9 lines
232 B
Kotlin
Vendored
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"
|