Do not use declared constant's value inside a nameof() expression#503
Do not use declared constant's value inside a nameof() expression#503gafter merged 1 commit intodotnet:masterfrom
Conversation
|
I also changed all of the tabs in SourceLocalSymbol to spaces. |
|
@VladimirReshetnikov @VSadov Can you please review this? |
|
@Jenkins test this please |
|
To: @AlekseyTs @agocke @VSadov @VladimirReshetnikov @jaredpar Can a couple of you please take a look? |
There was a problem hiding this comment.
Meaning "there is no enclosing nameof expression"
There was a problem hiding this comment.
Consider adding this as a comment
|
Does this need a test in the semantic model? |
|
@agocke What would you like to see tested? Or do you mean the semantic model may need to be adjusted to accomodate the change? |
|
@gafter Just that the semantic model also successfully binds without diagnostics. |
There was a problem hiding this comment.
Please add similar test for VB.
|
LGTM. We should have the same test for VB. |
Do not use declared constant's value inside a nameof() expression
Fixes #40