Skip to content

Enable '#nullable' context #8

Description

@henrygab

Enabling non-nullable reference types requires explicit update to the .csproj file. This is done for backwards-compatibility.

Current compiler warnings

Three files are currently trying to use the non-nullable reference types feature, without the feature actually being enabled. The compiler emits the following warning for each of Enumerate/BlockEnumerator.cs,
Enumerate/MergeEnumerator.cs, and
Enumerate/TableEnumerator.cs:

warning CS8632: The annotation for nullable reference types should only 
                be used in code within a '#nullable' annotations context. 

See C# documentation for details.
See also relevant stackoverflow thread.


Caveats (click to expand)

For most cases, enabling nullable annotations context should be straightforward. However, there are some functions where special annotations are required. These cases are more fully described by the corresponding documentation on migration strategies.


If interested, I am happy to work on preparing a PR to enable this ... just let me know.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions