[FIR] Fix resolution of plugin annotations if only meta annotations are registered
This commit is contained in:
committed by
Space Team
parent
0d50f71fb8
commit
4f3add8f7a
+2
-2
@@ -119,8 +119,8 @@ internal abstract class AbstractFirSpecificAnnotationResolveTransformer(
|
||||
}
|
||||
|
||||
private fun shouldRunAnnotationResolve(name: Name): Boolean {
|
||||
if (annotationsFromPlugins.isNotEmpty()) return true
|
||||
return name in REQUIRED_ANNOTATION_NAMES
|
||||
if (metaAnnotationsFromPlugins.isNotEmpty()) return true
|
||||
return name in REQUIRED_ANNOTATION_NAMES || annotationsFromPlugins.any { it.shortName() == name }
|
||||
}
|
||||
|
||||
private fun FirResolvedTypeRef.requiredToSave(): Boolean {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
|
||||
// FIR_IDENTICAL
|
||||
package test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user