From 3327524e1878bc0398cb07b4f61139bcc2fce6af Mon Sep 17 00:00:00 2001 From: Georgy Bronnikov Date: Thu, 10 Sep 2020 16:47:17 +0300 Subject: [PATCH] JVM_IR: remove descriptor usage from TypeAliasAnnotationMethodsLowering --- .../backend/jvm/lower/TypeAliasAnnotationMethodsLowering.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/TypeAliasAnnotationMethodsLowering.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/TypeAliasAnnotationMethodsLowering.kt index 2e663dc77e9..64b54159ec0 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/TypeAliasAnnotationMethodsLowering.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/TypeAliasAnnotationMethodsLowering.kt @@ -37,7 +37,7 @@ class TypeAliasAnnotationMethodsLowering(val context: CommonBackendContext) : private fun IrClass.visitTypeAliases() { val annotatedAliases = declarations .filterIsInstance() - .filter { !it.descriptor.annotations.isEmpty() } + .filter { it.annotations.isNotEmpty() } for (alias in annotatedAliases) { addFunction {