-
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
[semi-auto-props]: Disallow 'nameof(field)' #60384
[semi-auto-props]: Disallow 'nameof(field)' #60384
Conversation
Done review pass (commit 2) |
src/Compilers/CSharp/Test/Semantic/Semantics/PropertyFieldKeywordTests.cs
Show resolved
Hide resolved
@333fred @AlekseyTs Can you take another look please? Thanks! |
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 (commit 3). @AlekseyTs for the second review.
@AlekseyTs Can you take a look please? Thanks! |
@@ -1557,7 +1557,8 @@ private BoundExpression BindDefaultExpression(DefaultExpressionSyntax node, Bind | |||
// Cannot escape out of the current expression, as it's a compiler-synthesized location. | |||
expression = new BoundDiscardExpression(node, LocalScopeDepth, type: null); | |||
} | |||
else if (node.Identifier.ContextualKind() == SyntaxKind.FieldKeyword && | |||
else if (!IsInsideNameof && |
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 (commit 3) |
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 (commit 4)
@333fred Please review latest changes. |
@Youssef1313 Consider resolving the merge conflict |
… semi-nameof-disallow
Test plan: #57012
cc @AlekseyTs @333fred