From 8172ae5d89d655a5fc12c39d1bf4ea3a576853bd Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 1 Feb 2021 15:52:14 +0100 Subject: [PATCH] Fix codegen test classLiteralWithExpectedType.kt on Android Similar to changes in d022bb0248a, this test started to fail because `AnnotationTarget.TYPE` is mapped to `ElementType.TYPE_USE` if JVM target is >= 1.8. In codegen tests on Android, we're running the emulator of version 19 which is less than 26, where `TYPE_USE` has first appeared. --- .../annotations/onTypes/classLiteralWithExpectedType.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt b/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt index 43923fce2a6..8f430ae0cd2 100644 --- a/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt +++ b/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt @@ -1,6 +1,8 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_REFLECT +// JVM_TARGET: 1.6 + package test import kotlin.reflect.KClass @@ -23,4 +25,4 @@ fun box(): String { ) return "OK" -} \ No newline at end of file +}