Temporary fix for problem with ownerDescriptor in ImportingScope

This commit is contained in:
Valentin Kipyatkov
2015-10-26 14:49:56 +03:00
parent 03f18e1ac1
commit a5982281af
3 changed files with 6 additions and 3 deletions
@@ -191,7 +191,7 @@ public class ShadowedDeclarationsFilter private constructor(
var scope = context.getResolutionScope(bindingContext, resolutionFacade)
if (descriptorsToImport.isNotEmpty()) {
scope = scope.addImportScope(ExplicitImportsScope(descriptorsToImport))
scope = scope.addImportScope(ExplicitImportsScope(descriptorsToImport, scope.ownerDescriptor))
}
val dataFlowInfo = bindingContext.getDataFlowInfo(context)