K2: expand type aliases in annotation position #KT-55615 Fixed
This commit is contained in:
committed by
Space Team
parent
3cf811012a
commit
0d50f71fb8
+1
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user