dotnet / dotnet/fsharp

Nullness - Consider supporting Nullable shorthand for TreatWarningsAsErrors

Open
#17,524 6 comments 0 reactions 0 assignees View on GitHub
Area-Nullness Feature Request good first issue help wanted Needs-Triage
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

**Is your feature request related to a problem? Please describe.**

In C# it's possible to convert all nullable-related warnings to errors using `nullable`. From [docs](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/errors-warnings#treatwarningsaserrors):
`
The set of all nullability warnings can be specified with the Nullable shorthand.
`

So in line with https://github.com/dotnet/fsharp/pull/17486 it would be nice to have WAE behaviour as well.

**Describe the solution you'd like**

Support `nullable`

**Describe alternatives you've considered**

Just use specific warning numbers or even `true`.

**Additional context**

.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.