diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt index 89773914db9..03778e37b13 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt @@ -339,7 +339,7 @@ class Fir2IrClassifierStorage( val klass = getIrAnonymousObjectForEnumEntry(initializer, enumEntry.name, irParent) this.correspondingClass = klass - } else if (irParent != null) { + } else if (irParent != null && origin == IrDeclarationOrigin.DEFINED) { this.initializerExpression = IrExpressionBodyImpl( IrEnumConstructorCallImpl(startOffset, endOffset, irType, irParent.constructors.first().symbol) ) diff --git a/compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt b/compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt index f8fcd260653..af473c291ba 100644 --- a/compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt +++ b/compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS, NATIVE diff --git a/compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.kt b/compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.kt index 430a11de2fa..ff21820da0a 100644 --- a/compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.kt +++ b/compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/parameters/kinds.kt b/compiler/testData/codegen/box/reflection/parameters/kinds.kt index 5896d40eb85..3891305945d 100644 --- a/compiler/testData/codegen/box/reflection/parameters/kinds.kt +++ b/compiler/testData/codegen/box/reflection/parameters/kinds.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS, NATIVE