Why comparing optional with non-optional compiles well and always fails?

That’s because they are different, a ?int and int are different.

Same reason while this will compile it will never be true
image

1 Like