From c444c4d10b334bca7f6e0f1bfdb021a388f3ee83 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 13 Jun 2017 14:36:26 +0300 Subject: [PATCH] Ignore $$delegatedProperties in light analysis mode tests For tests with local delegated properties, this field is generated in the full mode, but is not generated in the lite mode because local variables are not analyzed properly in the lite mode --- .../jetbrains/kotlin/codegen/AbstractLightAnalysisModeTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractLightAnalysisModeTest.kt b/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractLightAnalysisModeTest.kt index ec8149b1929..0afc8e1e4d3 100644 --- a/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractLightAnalysisModeTest.kt +++ b/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractLightAnalysisModeTest.kt @@ -22,6 +22,7 @@ import org.jetbrains.kotlin.codegen.`when`.WhenByEnumsMapping.MAPPINGS_CLASS_NAM import org.jetbrains.kotlin.codegen.binding.CodegenBinding import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.descriptors.Visibilities +import org.jetbrains.kotlin.load.java.JvmAbi import org.jetbrains.kotlin.resolve.jvm.AsmTypes import org.jetbrains.kotlin.resolve.jvm.extensions.AnalysisHandlerExtension import org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension @@ -124,6 +125,7 @@ abstract class AbstractLightAnalysisModeTest : CodegenTestCase() { override fun shouldWriteField(access: Int, name: String, desc: String) = when { name == "\$VALUES" && (access and ACC_PRIVATE != 0) && (access and ACC_FINAL != 0) && (access and ACC_SYNTHETIC != 0) -> false + name == JvmAbi.DELEGATED_PROPERTIES_ARRAY_NAME && (access and ACC_SYNTHETIC != 0) -> false else -> true }