Don't report EXPERIMENTAL_OVERRIDE_ERROR on annotated local functions
#KT-31728 Fixed
This commit is contained in:
committed by
teamcityserver
parent
cb232725f0
commit
7393465696
+1
-2
@@ -214,8 +214,7 @@ class ExperimentalUsageChecker(project: Project) : CallChecker {
|
||||
if (this !is KtDeclaration) return false
|
||||
|
||||
val descriptor = bindingContext.get(BindingContext.DECLARATION_TO_DESCRIPTOR, this)
|
||||
return descriptor != null && !DescriptorUtils.isLocal(descriptor) &&
|
||||
descriptor.annotations.hasAnnotation(annotationFqName)
|
||||
return descriptor != null && descriptor.annotations.hasAnnotation(annotationFqName)
|
||||
}
|
||||
|
||||
private fun PsiElement.isElementAnnotatedWithUseExperimentalOf(annotationFqName: FqName, bindingContext: BindingContext): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user