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
If we have a program like:
```csharp
class Never { }
class Program
{
static void Main()
{
Test(null);
}
[MethodImpl(MethodImplOptions.NoInlining)]
static void Test(object o)
{
if (o is Never)
Console.WriteLine("Hello!");
if (o.GetType() == typeof(Never))
Console.WriteLine("Hello!");
}
}
```
We know these checks are never going to be true thanks to the whole program view. Fold these to `false`.
0 commit comments