-
Notifications
You must be signed in to change notification settings - Fork 2.2k
proc: make PushPackageVarOrSelect check local variables first #4181
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
base: master
Are you sure you want to change the base?
Conversation
7895256 to
7a36e78
Compare
|
To be honest I'm not sure it's worth doing this. It matches better the semantics of Go but It brings in some complication and it's mostly about collisions between local variables and global variables (which are rare anyway). |
|
This PR seems to address another issue I discovered the other day. When the local structure variable and the package name in dwarf are the same, when calling the method of the local structure variable, it will be displayed that the method cannot be found. 🤣 |
|
I tried debugging the unit tests using the Delve command fixed by this patch and found other issues. |
|
What's code.byted.org/gin/ginex/ctx.Value? |
|
the |
|
I've determined that this code is causing the problem. But I'm not sure if this scenario makes sense. Lines 3002 to 3009 in b271ba3
|
|
Should be fixed. |
|
I used your patch and it worked fine locally. |
I've been holding off on review due to this concern. Do you still feel this way? |


Fixes #4179