K2: expand type aliases in annotation position #KT-55615 Fixed

This commit is contained in:
Mikhail Glukhikh
2022-12-22 12:53:32 +01:00
committed by Space Team
parent 3cf811012a
commit 0d50f71fb8
77 changed files with 345 additions and 348 deletions
@@ -60,11 +60,10 @@ internal class SingleNonLocalDeclarationDiagnosticRetriever(
return true
}
@Suppress("IntroduceWhenSubject")
return when {
structureElementDeclaration !is FirRegularClass -> true
structureElementDeclaration == declaration -> true
declaration.hasAnnotation(StandardClassIds.Annotations.Suppress) -> {
declaration.hasAnnotation(StandardClassIds.Annotations.Suppress, context.session) -> {
useRegularComponents = false
true
}