Why does pattern matching on a nullable result in syntax errors?
The type pattern in its various forms: x is T y, case T y etc, always fails to match when x is null. This is because null doesn’t have a type, so asking “is this null of this type?” is a meaningless question. Therefore t is int? i or t is Nullable<int> i makes no … Read more