lock (null)
{
}
with strict, this no longer compiles. (1/n tweets)
static class Foo {
static void Bar(object baz) {
if (baz is Foo) {
}
}
}
Guid baz = Guid.NewGuid();
if (baz == null) { // Produces warning with strict
}
enum Cat { Fuchsia, White }
static void Bar() {
var foo = 1 - Cat.Fuchsia;
Console.WriteLine(foo);
}
var v = new Func<string, string>(x => x);
var y = new Func<string, string>(ref v); //Does not compile with Strict