Closed
Description
Describe the bug
In C# the pattern x is not A or B
is interpreted as x is (not A) or B
and not x is not (A or B)
.
I was grep'ing my local git repositories for code that matched and stumbled upon
So this code is not checking whether direction
is "neither First
nor Last
".
As Last
is covered by not First
Roslyn even lowers this to != First
.
As such this looks like a bug to me
To Reproduce
I found this by analyzing the code and didn't write any code I don't know and haven't looked into if this potential bug can be hit.
Expected behavior
No response
Avalonia version
master
OS
No response
Additional context
No response