Hacker News new | ask | show | jobs
by neonsunset 434 days ago
This is possible if you disregarded compiler warnings and assigned null to a non-nullable location.
1 comments

Feels like this should be a compiler error. Or saying otherwise, this location isn't very non-nullable if you can assign null to it
Just add <WarningsAsErrors>nullable</WarningsAsErrors> to the project manifest.