NI: don't do substitution for unsupported callable descriptors to use as callable references

^KT-41729 Fixed
This commit is contained in:
Victor Petukhov
2020-09-09 11:55:18 +03:00
parent 668098f3a8
commit 685d16ec68
27 changed files with 247 additions and 55 deletions
@@ -54,3 +54,5 @@ fun DeclarationDescriptor.isTopLevelInPackage(name: String, packageName: String)
val packageFqName = containingDeclaration.fqName.asString()
return packageName == packageFqName
}
fun CallableDescriptor.isSupportedForCallableReference() = this is PropertyDescriptor || this is FunctionDescriptor