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
scoped
The following should probably parse as two scoped modifiers.
We should also consider aligning the parser's behavior on scoped.nested a; (parsed as nested type) versus ref scoped.nested b; (error).
scoped.nested a;
ref scoped.nested b;
This issue is referenced in a couple of tests.
Relates to test plan #59194
[Theory] [InlineData(LanguageVersion.CSharp10)] [InlineData(LanguageVersion.CSharp11)] public void Local_07_WithInitializer(LanguageVersion langVersion) { string source = @"scoped scoped a = default; "; UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); N(SyntaxKind.CompilationUnit); { N(SyntaxKind.GlobalStatement); { N(SyntaxKind.LocalDeclarationStatement); { N(SyntaxKind.ScopedKeyword); N(SyntaxKind.VariableDeclaration); { N(SyntaxKind.IdentifierName); { N(SyntaxKind.IdentifierToken, "scoped"); } N(SyntaxKind.VariableDeclarator); { N(SyntaxKind.IdentifierToken, "a"); N(SyntaxKind.EqualsValueClause); { N(SyntaxKind.EqualsToken); N(SyntaxKind.DefaultLiteralExpression); { N(SyntaxKind.DefaultKeyword); } } } } N(SyntaxKind.SemicolonToken); } } N(SyntaxKind.EndOfFileToken); } EOF(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following should probably parse as two
scoped
modifiers.We should also consider aligning the parser's behavior on
scoped.nested a;
(parsed as nested type) versusref scoped.nested b;
(error).This issue is referenced in a couple of tests.
Relates to test plan #59194
The text was updated successfully, but these errors were encountered: