-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Completion for this
is always offered in anonymous functions
#27923
Comments
Would marking this as "help wanted" or "good first issue" be appropriate? |
Done. Thanks for catching and filing this |
I would like to take up this issue as my first contribution to this project if possible. |
Nice. Go for it. |
@nprad Are you still interested in fixing this? Do you need any help? |
I apologize for the delay on this. Yes, I'm still interested in contributing to this ticket. I'll try to have a PR by the end of the weekend if that okay with you. |
No need to apologize. This is a very minor and low-priority issue, so you don't have to hurry. Yes it is okay with me (though I'm just a contributor, so whether or not it is ok with me is not really relevant, but I'm pretty sure the team is ok with that too 😄) |
This "issue" could be sitting here for years and noone would care, so you can take your time I think 😃 I reported it because I found this during code review, not because it is important to me. |
I submitted a PR for this issue last night, not realising there is already one outstanding. The other PR doesn't currently pass the build, so I'll leave mine open. I'm happy to close it off if needed though. |
In both places at
$$
,this
keyword is offered even though the method is static.Discovered here:
#27690 (review)
I believe the fix should be really easy - just modify
method.MethodKind == MethodKind.LocalFunction
tomethod.MethodKind == MethodKind.LocalFunction || method.MethodKind == MethodKind.AnonymousFunction
and add appropriate tests including nested anonymous functions and possibly even cases with a lambda inside a local function and vice versa, if you want to be extra diligent 😄The text was updated successfully, but these errors were encountered: