CFA: No more UNRESOLVED_CALL for object / enum entry qualifiers

(cherry picked from commit 4b09de8)
This commit is contained in:
Mikhail Glukhikh
2016-08-04 15:05:11 +03:00
committed by Mikhail Glukhikh
parent 962c2e5dd2
commit b7ed68db05
17 changed files with 504 additions and 30 deletions
@@ -268,7 +268,7 @@ private fun ResolutionScope.getContributedObjectVariables(name: Name, location:
return listOfNotNull(objectDescriptor)
}
private fun getFakeDescriptorForObject(classifier: ClassifierDescriptor?): FakeCallableDescriptorForObject? =
fun getFakeDescriptorForObject(classifier: ClassifierDescriptor?): FakeCallableDescriptorForObject? =
when (classifier) {
is TypeAliasDescriptor ->
getFakeDescriptorForObject(classifier.classDescriptor)