77ab13400e
It was reported because in composite module analysis we have both expect and actual annotation descriptors, which may differ. This may lead to bugs in the checker of ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT diagnostic. `fqName` comparison can be safely removed, because we already check types in `areCompatibleExpectActualTypes`. Tests: - typealiasedAnnotation.kt - for annotation use (so it has different ClassId) - typealiasedAnnotationAsArgument.kt - when typealiased annotation used in another annotation as argument - sourceRetentionAnnotationsWhenTypealias.kt - tests same as compiler/testData/diagnostics/tests/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.kt No special test added for opt-in, because it's prohibited to have expect/actual opt-ins by EXPECT_ACTUAL_OPT_IN_ANNOTATION checker. ^KTIJ-26700