Skip to content

Conversation

Eideren
Copy link
Contributor

@Eideren Eideren commented May 11, 2022

Summary

Fixed invalid syntax


```csharp
Action a = () = StaticFunction;
Action a = () => StaticFunction();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Action a = () => StaticFunction();
Action a = () => StaticFunction;

Close, I think it just needed the goes to operator, but not the parentheses on StaticFunction. Let's double check with @BillWagner

Copy link
Member

Choose a reason for hiding this comment

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

Either will work in this instance. That's because there is only one overload of StaticFunction. I'd prefer the version with the parentheses because it would work when there are more overloads.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This LGTM @Eideren

Thanks for the extra 👀 on this @IEvangelist

I'll :shipit: now.

@BillWagner BillWagner merged commit 9d8b671 into dotnet:main May 11, 2022
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.

4 participants