[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:
committed by
Space Team
parent
b1bdb619d8
commit
1a4ab9bb4b
@@ -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() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user