diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java index ac3bbfcdf7c..2c95d730d39 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java @@ -376,6 +376,12 @@ public class FirLightTreeBytecodeListingTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); } + @Test + @TestMetadata("kt62788.kt") + public void testKt62788() { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt"); + } + @Test @TestMetadata("kt9320.kt") public void testKt9320() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java index 4ab881cef02..9487de9abcc 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java @@ -376,6 +376,12 @@ public class FirPsiBytecodeListingTestGenerated extends AbstractFirPsiBytecodeLi runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); } + @Test + @TestMetadata("kt62788.kt") + public void testKt62788() { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt"); + } + @Test @TestMetadata("kt9320.kt") public void testKt9320() { diff --git a/compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt b/compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt new file mode 100644 index 00000000000..1bd47398d50 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt @@ -0,0 +1,16 @@ +@Retention(AnnotationRetention.BINARY) +annotation class MyAnnotation + +interface MyInterface { + @MyAnnotation + fun foo() { + } +} + +interface I1 : MyInterface + +interface I2 : MyInterface { + override fun foo() {} +} + +class MyClass : I1, I2 diff --git a/compiler/testData/codegen/bytecodeListing/annotations/kt62788.txt b/compiler/testData/codegen/bytecodeListing/annotations/kt62788.txt new file mode 100644 index 00000000000..1201f7b0771 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/kt62788.txt @@ -0,0 +1,56 @@ +@kotlin.Metadata +public final class I1$DefaultImpls { + // source: 'kt62788.kt' + public static @MyAnnotation method foo(@org.jetbrains.annotations.NotNull p0: I1): void + public final inner class I1$DefaultImpls + public final inner class MyInterface$DefaultImpls +} + +@kotlin.Metadata +public interface I1 { + // source: 'kt62788.kt' + public final inner class I1$DefaultImpls +} + +@kotlin.Metadata +public final class I2$DefaultImpls { + // source: 'kt62788.kt' + public static method foo(@org.jetbrains.annotations.NotNull p0: I2): void + public final inner class I2$DefaultImpls +} + +@kotlin.Metadata +public interface I2 { + // source: 'kt62788.kt' + public abstract method foo(): void + public final inner class I2$DefaultImpls +} + +@kotlin.annotation.Retention(value=BINARY) +@java.lang.annotation.Retention(value=CLASS) +@kotlin.Metadata +public annotation class MyAnnotation { + // source: 'kt62788.kt' +} + +@kotlin.Metadata +public final class MyClass { + // source: 'kt62788.kt' + public method (): void + public @MyAnnotation method foo(): void + public final inner class I2$DefaultImpls +} + +@kotlin.Metadata +public final class MyInterface$DefaultImpls { + // source: 'kt62788.kt' + public static @MyAnnotation method foo(@org.jetbrains.annotations.NotNull p0: MyInterface): void + public final inner class MyInterface$DefaultImpls +} + +@kotlin.Metadata +public interface MyInterface { + // source: 'kt62788.kt' + public abstract @MyAnnotation method foo(): void + public final inner class MyInterface$DefaultImpls +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java index 7e84ac15533..d549ac33dfb 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java @@ -13491,6 +13491,12 @@ public class JvmAbiConsistencyTestRestGenerated extends AbstractJvmAbiConsistenc runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); } + @Test + @TestMetadata("kt62788.kt") + public void testKt62788() { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt"); + } + @Test @TestMetadata("kt9320.kt") public void testKt9320() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java index 17d55b0e431..2bd25a1473b 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java @@ -376,6 +376,12 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); } + @Test + @TestMetadata("kt62788.kt") + public void testKt62788() { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt62788.kt"); + } + @Test @TestMetadata("kt9320.kt") public void testKt9320() {