Clarify Visibility.isVisible contract for null as receiverValue

See comment
This commit is contained in:
Denis Zharkov
2016-03-25 19:01:13 +03:00
parent 60511f010a
commit 182b349492
15 changed files with 69 additions and 19 deletions
@@ -54,7 +54,7 @@ private fun DeclarationDescriptorWithVisibility.isVisible(
bindingContext: BindingContext? = null,
resolutionScope: LexicalScope? = null
): Boolean {
if (Visibilities.isVisibleWithIrrelevantReceiver(this, from)) return true
if (Visibilities.isVisibleWithAnyReceiver(this, from)) return true
if (bindingContext == null || resolutionScope == null) return false