-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Give 'typeof'-like errors in attribute type arguments #54956
Give 'typeof'-like errors in attribute type arguments #54956
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with review pass (iteration 1)
@@ -9938,62 +9938,59 @@ static void Main() | |||
|
|||
[Fact] | |||
[WorkItem(54778, "https://github.com/dotnet/roslyn/issues/54778")] | |||
public void GenericAttribute_Dynamic_01() | |||
public void GenericAttribute_AttributeDependentTypes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider testing a nested situation (type is bad in multiple ways) to show that we only report once.
For example List<string?>?
or (int a, (int b, int c))
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 2)
@jaredpar let me know if you have any concerns about the changes since your last review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 6)
Just to let people know that this broke EF Core (and apparently also Orchard, /cc @sebastienros), see dotnet/efcore#25664. In our case this was the use of |
Resolves dotnet/runtime#64655
Resolves #54778
Related to #36285