-
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
Improve few diagnostics #52047
Improve few diagnostics #52047
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -547,7 +547,7 @@ | |
<value>Inconsistent accessibility: parameter type '{1}' is less accessible than delegate '{0}'</value> | ||
</data> | ||
<data name="ERR_BadVisBaseClass" xml:space="preserve"> | ||
<value>Inconsistent accessibility: base class '{1}' is less accessible than class '{0}'</value> | ||
<value>Inconsistent accessibility: base type '{1}' is less accessible than type '{0}'</value> | ||
</data> | ||
<data name="ERR_BadVisBaseInterface" xml:space="preserve"> | ||
<value>Inconsistent accessibility: base interface '{1}' is less accessible than interface '{0}'</value> | ||
|
@@ -1138,7 +1138,7 @@ | |
<value>Partial declarations of '{0}' have conflicting accessibility modifiers</value> | ||
</data> | ||
<data name="ERR_PartialMultipleBases" xml:space="preserve"> | ||
<value>Partial declarations of '{0}' must not specify different base classes</value> | ||
<value>Partial declarations of '{0}' must not specify different base types</value> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I do not think we should make this change. A record class is a class and this error isn't about an interface in the base list, but specifically about the class type. |
||
</data> | ||
<data name="ERR_PartialWrongTypeParams" xml:space="preserve"> | ||
<value>Partial declarations of '{0}' must have the same type parameter names in the same order</value> | ||
|
@@ -1276,7 +1276,7 @@ | |
<value>Duplicate constraint '{0}' for type parameter '{1}'</value> | ||
</data> | ||
<data name="ERR_ClassBoundNotFirst" xml:space="preserve"> | ||
<value>The class type constraint '{0}' must come before any other constraints</value> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I do not think we should make his change. This error is specifically about class types (record classes are classes), not about interface types, for example. |
||
<value>The type constraint '{0}' must come before any other constraints</value> | ||
</data> | ||
<data name="ERR_BadRetType" xml:space="preserve"> | ||
<value>'{1} {0}' has the wrong return type</value> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
I do not think we should make this change. A record class is a class.