default(SyntaxToken).ValueText could return an empty string #41304
Labels
Area-Compilers
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
Concept-Null Annotations
The issue involves annotating an API for nullable reference types
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
Version Used: 1b4b5ba
Steps to Reproduce:
Expected Behavior:
Returns
""
.Actual Behavior:
Returns
null
.This is the only situation where
SyntaxToken.ValueText
returnsnull
, and it forces the property itself to have typestring?
instead ofstring
. If we update the return value for this case, the property no longer needs to be nullable.The text was updated successfully, but these errors were encountered: