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
The mentioned rules claims that the following line is illegal:
if (maybe.HasNoValue || !(maybe.Value is TTo value))
(maybe is a struct of type Maybe from CSharpFunctionalExtensions nuget).
However it is not syntactically equivalent to remove this parenthesis. Without them, the compiler complains that operator "!" cannot be applied on maybe.Value.
The text was updated successfully, but these errors were encountered:
The mentioned rules claims that the following line is illegal:
if (maybe.HasNoValue || !(maybe.Value is TTo value))
(maybe is a struct of type Maybe from CSharpFunctionalExtensions nuget).
However it is not syntactically equivalent to remove this parenthesis. Without them, the compiler complains that operator "!" cannot be applied on maybe.Value.
The text was updated successfully, but these errors were encountered: