-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Address prototype comments in file types branch #62335
Address prototype comments in file types branch #62335
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
src/Compilers/CSharp/Test/Syntax/Parsing/FileModifierParsingTests.cs
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@@ -427,3 +427,16 @@ class @required {} // No error | |||
This was done as `required` is now a member modifier for properties and fields. | |||
|
|||
You can learn more about this change in the associated [csharplang issue](https://github.com/dotnet/csharplang/issues/3630). | |||
|
|||
## Types cannot be named `file` |
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.
Please place the new entry at the top. We changed the order when mirroring process to docs.microsoft.com started (was done in #60260)
""", | ||
expectedBindingDiagnostics: new[] | ||
{ | ||
// (1,7): error CS9056: Types and aliases cannot be named 'file'. |
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.
Let's also test this scenario (type named "file") with C# 10
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 8) modulo fixing the order in breaking changes
Verified that the most recent changes pass locally and will verify in CI when merging to main. |
Related to #60819