Include property type to KProperty.toString

This commit is contained in:
Alexander Udalov
2015-08-24 17:43:27 +03:00
parent d36ef90dd6
commit ea8fe56704
5 changed files with 16 additions and 10 deletions
@@ -10,7 +10,7 @@ class A {
fun box(): String {
val p = javaClass<A>().kotlin.memberExtensionProperties.single()
return if ("$p" == "var A.(kotlin.String.)id") "OK" else "Fail $p"
return if ("$p" == "var A.(kotlin.String.)id: kotlin.String") "OK" else "Fail $p"
val q = javaClass<A>().kotlin.declaredFunctions.single()
if ("$q" != "fun A.(kotlin.Int.)foo(): kotlin.Double") return "Fail q $q"