[FIR] move annotation recheck logic to ANNOTATIONS_ARGUMENTS_MAPPING phase

ARGUMENTS_OF_ANNOTATIONS will be dropped, so this check should be moved
This commit also drops class annotations resolution from implicit type
phase and provides the correct scope during argument mapping phase.
This code was effectively unreachable before

^KT-62679
This commit is contained in:
Dmitrii Gridin
2023-10-18 15:01:59 +02:00
committed by Space Team
parent 01905a5a06
commit a60777b9a7
8 changed files with 168 additions and 160 deletions
@@ -8,7 +8,7 @@ object Some {
CLASS
}
@Target(<!AMBIGUOUS_ANNOTATION_ARGUMENT!>FIELD<!>)
@Target(<!AMBIGUOUS_ANNOTATION_ARGUMENT, ARGUMENT_TYPE_MISMATCH!>FIELD<!>)
annotation class Ann2
const val FIELD = ""