Status of Language preview feature Null-checking parameters !!
Not sure if this is a bug or just because it is a preview feature but the following throws a System.NullReferenceException when compiling
void Main() { System.Environment.Version.Dump(); Test(null); } private void Test(string x!!) { x.Dump(); }
'Enable C#/F# Preview Features' in preferences is checked.
Comments
Yes, I've noticed this, too - it's an issue in Roslyn 7.1. If all goes to plan, I'll soon be releasing a Roslyn Daily build option soon, so you won't have to wait for 7.2.
Try now: -the Roslyn Daily option is back in Edit | Preferences > Query.
Thanks.