New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go: Avoid using getTarget() as it may not exist #13785
base: main
Are you sure you want to change the base?
Go: Avoid using getTarget() as it may not exist #13785
Conversation
|
Worth noting that this changes behaviour somewhat: now if the receiver is of non-interface type but the callee is promoted from an embedded interface, we'll call this a non-interface call and propagate the receiver into it. Contrast the old PR which I think looked at getACalleeSource instead of getTarget, and would have maintained the same behaviour regarding that scenario. |
Try to also deal with the case that we are calling a function through a variable that it has been assigned to.
28d7899
to
00d5cb7
Compare
|
@smowton Yes, good point about the difference. I've put up a new approach now, which uses |
|
Sounds sensible. Happy to either merge or not; your choice. |
Co-authored-by: Chris Smowton <smowton@github.com>
Try to also deal with the case that we are calling a function through a variable that it has been assigned to.