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
This code throws S1905 but when I make the recommended change the code fails to compile with CS0411. Is this a false positive?
using System; namespace S1905_False_Positive { internal static class Class { public static void RunAction(Action action) { RunFunc(() => { action(); return default; }, (bool)default); } public static T RunFunc<T>(Func<T> func, T returnvalue = default) { try { return func(); } catch (Exception) { return returnvalue; } } } }
The text was updated successfully, but these errors were encountered:
default
Hi @nnpcYvIVl,
This is indeed a FP! This is due to the unsupported (on our side) syntax default.
Sorry, something went wrong.
Evangelink
No branches or pull requests
Description
This code throws S1905 but when I make the recommended change the code fails to compile with CS0411. Is this a false positive?
Related information
The text was updated successfully, but these errors were encountered: