We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ref
No errors are reported for lambda signatures below:
delegate void D(ref int i); class Program { static void Main() { D d1 = (ref ref int i) => { }; D d2 = (in ref int i) => { }; D d3 = (out ref int i) => { }; } }
The text was updated successfully, but these errors were encountered:
The error for other symbols come from
roslyn/src/Compilers/CSharp/Portable/Symbols/Source/ParameterHelpers.cs
Line 19 in 69bdfb2
But it looks like lambdas have their own MakeParameters:
MakeParameters
roslyn/src/Compilers/CSharp/Portable/Symbols/Source/LambdaSymbol.cs
Line 303 in 220b3eb
Sorry, something went wrong.
Yes, thanks. I'm changing Binder.AnalyzeAnonymousFunction() to use ParameterHelpers.CheckModifiers() and ParameterHelpers.GetModifiers().
Binder.AnalyzeAnonymousFunction()
ParameterHelpers.CheckModifiers()
ParameterHelpers.GetModifiers()
Fixed in #62155.
cston
No branches or pull requests
No errors are reported for lambda signatures below:
The text was updated successfully, but these errors were encountered: