Multi-platform fix: no more errors for top-level impl fun / val / var in IDE

This commit is contained in:
Mikhail Glukhikh
2016-12-16 16:11:43 +03:00
parent 63cc5d872d
commit 5947d49dee
8 changed files with 35 additions and 3 deletions
@@ -142,9 +142,7 @@ class HeaderImplDeclarationChecker(val moduleToCheck: ModuleDescriptor? = null)
is FunctionDescriptor -> scope.getContributedFunctions(name, NoLookupLocation.FOR_ALREADY_TRACKED)
is PropertyDescriptor -> scope.getContributedVariables(name, NoLookupLocation.FOR_ALREADY_TRACKED)
else -> throw AssertionError("Unsupported declaration: $this")
}.filter {
it.module == myModule // TODO: only obtain descriptors from our module to start with
}
} // TODO: only obtain descriptors from our module to start with
}
fun ClassifierDescriptorWithTypeParameters.findClassifiersFromTheSameModule(): Collection<ClassifierDescriptorWithTypeParameters> {