From 34e8cae89efc2b82daab8ca07d9c1732c4c003d7 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Mon, 2 Jun 2014 15:21:28 +0400 Subject: [PATCH] KT-5112 - test file update --- .../codegen/boxWithStdlib/reflection/kt5112.kt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/compiler/testData/codegen/boxWithStdlib/reflection/kt5112.kt b/compiler/testData/codegen/boxWithStdlib/reflection/kt5112.kt index 8fc13b4a219..bd6317ca88b 100644 --- a/compiler/testData/codegen/boxWithStdlib/reflection/kt5112.kt +++ b/compiler/testData/codegen/boxWithStdlib/reflection/kt5112.kt @@ -17,10 +17,13 @@ public class ErrorsJvmClass { } fun box(): String { - val genericType = javaClass().getField("param").getGenericType() - if (genericType.toString() != "test.G") return "fail1: $genericType" + val genericTypeInTrait = javaClass().getField("param").getGenericType() + if (genericTypeInTrait.toString() != "test.G") return "fail1: $genericTypeInTrait" - val genericType2 = javaClass().getField("param").getGenericType() - if (genericType2.toString() != "test.G") return "fail1: genericType2" + val genericTypeInClassObject = ErrorsJvmTrait.javaClass.getDeclaredField("param").getGenericType() + if (genericTypeInClassObject.toString() != "test.G") return "fail1: $genericTypeInClassObject" + + val genericTypeInClass = javaClass().getField("param").getGenericType() + if (genericTypeInClass.toString() != "test.G") return "fail1: genericTypeInClass" return "OK" } \ No newline at end of file