Fix some weird cases when 'from' descriptor sourceElement is not a KotlinSourceElement
This commit is contained in:
@@ -64,6 +64,8 @@ class ModuleVisibilityHelperImpl : ModuleVisibilityHelper {
|
||||
// TODO Implement full check for access to internal for incremental compilation
|
||||
if (what.isFromIncrementalPackageFragment) return true
|
||||
|
||||
if (modules.size == 1 && isContainedByCompiledPartOfOurModule(what, File(modules.single().getOutputDirectory()))) return true
|
||||
|
||||
return findModule(from, modules) === findModule(what, modules)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user