Can be compiled in: C# 6 https://github.com/dotnet/roslyn/issues/2110 The C# specification had "invariant meaning" rule: https://msdn.microsoft.com/en-us/library/aa691351(v=vs.71).aspx Roslyn has gotten rid of the "invariant meaning" rule.
Example #1
0
    static void Main()
    {
        var x = new InvariantMeaningInBlock();

        x.F(true);
        x.F(false);
    }
 static void Main()
 {
     var x = new InvariantMeaningInBlock();
     x.F(true);
     x.F(false);
 }