KT-3472 Can't navigate to source by clicking on a SAM constructor
#KT-3472 fixed
This commit is contained in:
@@ -196,7 +196,7 @@ public class BindingContextUtils {
|
||||
@NotNull
|
||||
private static List<PsiElement> callableDescriptorToDeclarations(@NotNull BindingContext context, @NotNull CallableMemberDescriptor callable) {
|
||||
if (callable.getKind() == CallableMemberDescriptor.Kind.SYNTHESIZED) {
|
||||
DeclarationDescriptor source = context.get(BindingContext.SOURCE_DESCRIPTOR_FOR_SYNTHESIZED, callable);
|
||||
DeclarationDescriptor source = context.get(BindingContext.SOURCE_DESCRIPTOR_FOR_SYNTHESIZED, callable.getOriginal());
|
||||
return source != null ? descriptorToDeclarations(context, source) : Collections.<PsiElement>emptyList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user