[IR] Don't check annotations on expect/actual fake overrides

^KT-58551
This commit is contained in:
Roman Efremov
2023-06-23 13:06:21 +02:00
committed by Space Team
parent 2980179bd7
commit 454756a2b5
5 changed files with 57 additions and 0 deletions
@@ -0,0 +1,32 @@
// FIR_IDENTICAL
// MODULE: m1-common
// FILE: common.kt
annotation class Ann
interface I {
@Ann
fun noAnnotationOnActual()
}
expect class FakeOverrideExpect : I
interface I2 {
fun noAnnotationOnActual()
}
expect class FakeOverrideActual : I2 {
@Ann
override fun noAnnotationOnActual()
}
// MODULE: m1-jvm()()(m1-common)
// FILE: jvm.kt
actual class FakeOverrideExpect : I {
override fun noAnnotationOnActual() {}
}
abstract class Intermediate : I2 {
override fun noAnnotationOnActual() {}
}
actual class FakeOverrideActual : Intermediate(), I2