diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceLowering.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceLowering.kt index 8b28acd6ec1..15867caa183 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceLowering.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceLowering.kt @@ -93,6 +93,8 @@ internal fun createStaticFunctionWithReceivers( copyTypeParametersFrom(oldFunction) + annotations.addAll(oldFunction.annotations) + var offset = 0 val dispatchReceiver = oldFunction.dispatchReceiverParameter?.copyTo( this, diff --git a/compiler/testData/codegen/box/jvm8/defaults/compatibility/propertyAnnotation.kt b/compiler/testData/codegen/box/jvm8/defaults/compatibility/propertyAnnotation.kt index adc93753317..41b0c2f71ee 100644 --- a/compiler/testData/codegen/box/jvm8/defaults/compatibility/propertyAnnotation.kt +++ b/compiler/testData/codegen/box/jvm8/defaults/compatibility/propertyAnnotation.kt @@ -1,5 +1,4 @@ // !JVM_DEFAULT_MODE: compatibility -// IGNORE_BACKEND: JVM_IR // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // WITH_REFLECT diff --git a/compiler/testData/codegen/box/jvm8/defaults/reflection/propertyAnnotations.kt b/compiler/testData/codegen/box/jvm8/defaults/reflection/propertyAnnotations.kt index ea144e8fbca..c067b8abe71 100644 --- a/compiler/testData/codegen/box/jvm8/defaults/reflection/propertyAnnotations.kt +++ b/compiler/testData/codegen/box/jvm8/defaults/reflection/propertyAnnotations.kt @@ -1,5 +1,4 @@ // !JVM_DEFAULT_MODE: enable -// IGNORE_BACKEND: JVM_IR // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // WITH_REFLECT diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt b/compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt index d326c2b0a49..f039baccbd1 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JVM_IR //ALLOW_AST_ACCESS package test diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt index 0b1dcbdea2b..694a37f83a4 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JVM_IR package test annotation class Anno diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt index f55a0f09237..f67ce9b2c8f 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JVM_IR package test annotation class Anno diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt b/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt index 6cbb407bcc1..fa3140be2e8 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JVM_IR package test annotation class A(val value: String)