Minor, add reflection test on inherited Java property

This commit is contained in:
Alexander Udalov
2015-04-01 17:48:26 +03:00
parent 7fda4ef438
commit 4cea9ecca4
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
public class J {
public String result = null;
}

View File

@@ -0,0 +1,9 @@
class K : J()
fun box(): String {
val k = K()
val p = K::result
if (p.get(k) != null) return "Fail"
p.set(k, "OK")
return p.get(k)
}