✅ Disjunctive patterns negation

Hey there.

I was wondering why my disjunctive is not working as intended:

authUser.Level
> Internal
authUser.Level is UserLevel.Administrator
> false
authUser.Level is UserLevel.Internal
> true
authUser.Level is not UserLevel.Administrator or UserLevel.Internal
> true


The last expression result doesn't make sense for me, because I'm checking if authUser.Level is not Administrator or Internal, and it actually is Internal as shown in the first expression, so the result should be false.

What i'm doing wrong?
Was this page helpful?