Cleanup deprecated symbol usages in testData
This commit is contained in:
+2
-2
@@ -6,10 +6,10 @@ open class Super(val r: String)
|
||||
class Sub(r: String) : Super(r)
|
||||
|
||||
fun box(): String {
|
||||
val props = javaClass<Sub>().kotlin.declaredMemberProperties
|
||||
val props = Sub::class.java.kotlin.declaredMemberProperties
|
||||
if (!props.isEmpty()) return "Fail $props"
|
||||
|
||||
val allProps = javaClass<Sub>().kotlin.memberProperties
|
||||
val allProps = Sub::class.java.kotlin.memberProperties
|
||||
assertEquals(listOf("r"), allProps.map { it.name })
|
||||
return allProps.single().get(Sub("OK")) as String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user