You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Used:
3.0.0-beta4-19170-01+1deafee3682da88bf07d1c18521a99f47446cee8
Repro:
#nullable enable
using System;classProgram{privatestaticobjects_foo;staticvoidMain()=> Console.WriteLine(s_foo.GetHashCode());}
There's no warning here, but it will obviously null ref. Shouldn't there be a warning for a non-nullable static field that's not initialized as part of the declaration or a static cctor?
Version Used:
3.0.0-beta4-19170-01+1deafee3682da88bf07d1c18521a99f47446cee8
Repro:
There's no warning here, but it will obviously null ref. Shouldn't there be a warning for a non-nullable static field that's not initialized as part of the declaration or a static cctor?
cc: @cston, @jaredpar, @danmosemsft, @dotnet/nullablefc
The text was updated successfully, but these errors were encountered: