Add flag to control nullable feature #26692
Labels
Area-Compilers
Area-Language Design
Feature - Nullable Reference Types
Nullable Reference Types
Urgency-Soon
Milestone
For the prototype, we're using LangVersion as the flag for both language version and nullable annotations.
At a minimum, we need an ability (separate from LangVersion) to disable nullable warnings.
From discussions with Chuck, we would have to decide whether this flag affects the symbols that we produce:
string
(no nullable annotations)string?
in source (with nullable warnings disabled), does QuickInfo show youstring?
back??
, since it is unnecessary. We can have a code fixer to remove the?
or to turn on nullable warnings.Some related questions, when the feature is turned off:
[NonNullTypes]
but the nullable feature is turned off? Warning??
or!
?Tagging @cston @AlekseyTs
Relates to #26199
The text was updated successfully, but these errors were encountered: