Dont show warning for KT-21515 with LV>=1.3
This commit is contained in:
+6
@@ -652,6 +652,12 @@ public class LazyClassDescriptor extends ClassDescriptorBase implements ClassDes
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean getShouldReportCyclicScopeWithCompanionWarning() {
|
||||
return !c.getLanguageVersionSettings()
|
||||
.supportsFeature(LanguageFeature.ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reportScopesLoopError(@NotNull KotlinType type) {
|
||||
PsiElement reportOn = DescriptorToSourceUtils.getSourceFromDescriptor(type.getConstructor().getDeclarationDescriptor());
|
||||
|
||||
Reference in New Issue
Block a user