Don't track lookups to EnumEntryScope and when check names in constraints

This commit is contained in:
Zalim Bashorov
2015-10-30 16:42:21 +03:00
parent 5a6bcea826
commit d78d96a856
2 changed files with 5 additions and 5 deletions
@@ -556,7 +556,7 @@ public class DescriptorResolver {
Name name = nameExpression.getReferencedNameAsName();
ClassifierDescriptor classifier = ScopeUtilsKt.findClassifier(scope, name, NoLookupLocation.UNSORTED);
ClassifierDescriptor classifier = ScopeUtilsKt.findClassifier(scope, name, NoLookupLocation.FOR_NON_TRACKED_SCOPE);
if (classifier instanceof TypeParameterDescriptor && classifier.getContainingDeclaration() == descriptor) continue;
if (classifier != null) {