Copy to interface just companion object public const properties

This commit is contained in:
Michael Bogdanov
2015-10-07 18:02:02 +03:00
parent a9aa2bc147
commit 12afbffb09
33 changed files with 111 additions and 79 deletions
@@ -17,9 +17,6 @@ public class ErrorsJvmClass {
}
fun box(): String {
val genericTypeInTrait = javaClass<ErrorsJvmTrait>().getField("param").getGenericType()
if (genericTypeInTrait.toString() != "test.G<java.lang.String>") return "fail1: $genericTypeInTrait"
val genericTypeInClassObject = ErrorsJvmTrait.javaClass.getDeclaredField("param").getGenericType()
if (genericTypeInClassObject.toString() != "test.G<java.lang.String>") return "fail1: $genericTypeInClassObject"