Skip to content

Compiler codebase chore :: Hash directives around nullness syntax are not needed anymore #18061

@T-Gro

Description

@T-Gro

While the nullness feature was being developed, the previous compiler (LKG = Last Known Good) did not understand nullness syntax ("not null", | null).
Which lead to null-relevant code surrounded in "#if" directives, to make it compile both under the .NET8 compiler as well as the new .NET9 one.

With .NET being out, those should not be needed anymore.
The same would apply to wrapper types created in order to limit the number of "#if" directives, pretty much most of the NullnessShims.fs file and the broad usage of the "MaybeNull" wrapper.

This can be done incrementally.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions