[FE] Implement FE logic of expect actual annotations matching

This implementation only checks annotations set on expect/actual
declarations and requires further refinement (e.g. checking of other
annotation targets, class scopes within typealiases).

^KT-58551
This commit is contained in:
Roman Efremov
2023-06-22 15:22:17 +02:00
committed by Space Team
parent b1bdb619d8
commit 1a4ab9bb4b
49 changed files with 1481 additions and 25 deletions
@@ -4,7 +4,7 @@
@OptionalExpectation
expect annotation class A()
expect class C {
class C {
@A
fun f()
fun f() {}
}
@@ -1,3 +0,0 @@
actual class C {
actual fun f() {}
}
@@ -1,6 +1 @@
actual annotation class A
actual class C {
@A
actual fun f() {}
}