-
Notifications
You must be signed in to change notification settings - Fork 511
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
InvalidCastException requesting fixes for SA1129 on target typed new #3277
Comments
Fix may be just to replace ObjectCreationExpressionSyntax in these places to BaseObjectCreationExpressionSyntax Line 64 in fe00f94
Line 149 in fe00f94
And may review other use of ObjectCreationExpressionSyntax in the project? |
I don't have time to offer a fix, unfortunately. |
sharwell
pushed a commit
to sharwell/StyleCopAnalyzers
that referenced
this issue
Dec 21, 2020
sharwell
added a commit
to sharwell/StyleCopAnalyzers
that referenced
this issue
Dec 21, 2020
sharwell
added a commit
to sharwell/StyleCopAnalyzers
that referenced
this issue
Dec 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Double click on the SA1129 (I have it set to error) and then Ctrl-. to go to fix it and you consistently get
Expected: replace
new()
withdefault
without failing.The text was updated successfully, but these errors were encountered: