Skip to content
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

VSTHRD114: Handle delegate and local functions #625

Merged
merged 6 commits into from
May 4, 2020

Conversation

Evangelink
Copy link
Member

Fixes #618 and based upon #619

Tagging @AArnott

@Evangelink
Copy link
Member Author

Oops I forgot to update the code-fix provider. I'll work on it!

Copy link
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AArnott AArnott self-assigned this May 4, 2020
@AArnott AArnott added this to the v16.7 milestone May 4, 2020
@Evangelink
Copy link
Member Author

I was so close to it!!!! Thanks for the changes @AArnott

ILocalFunctionOperation localFunction => localFunction.Symbol,
IAnonymousFunctionOperation anonymousFunction => anonymousFunction.Symbol,

// Block parent is the method declaration, for vbnet this means a null parent but for C# it's a IMethodBodyOperation
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sharwell, @AArnott Do you think that's worth creating a ticket on roslyn? It would be simpler to have a common behavior for both languages when using operations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 I don't know. I'll leave that up to @sharwell.

@AArnott AArnott merged commit f947f94 into microsoft:master May 4, 2020
@Evangelink Evangelink deleted the vsthrd114 branch May 4, 2020 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSTHRD114 handles anonymous delegates incorrectly
2 participants