Do not run resolution processors for inapplicable statics

This commit is contained in:
Denis Zharkov
2017-08-16 12:26:01 +07:00
parent c018a76aaa
commit 51d3969822
@@ -143,7 +143,7 @@ class TowerResolver {
for (scope in lexicalScope.parentsWithSelf) {
if (scope is LexicalScope) {
// statics
if (!scope.kind.withLocalDescriptors) {
if (!scope.kind.withLocalDescriptors && scope.mayFitForName(name, location)) {
TowerData.TowerLevel(ScopeBasedTowerLevel(this, scope)).process()?.let { return it }
}