Relational patterns and boxing #5981
-
I have just faced somewhat unexpected behavior in regard to relational patterns and boxing, would be happy to know if it's correct and why it is this way. Result is
And it's
But it's
Or if
I guess it's related to the fact that types of the boxed value and pattern are compared before the values are, but all this is quite confusing and inconsistent, considering that
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This behaves as specified:
|
Beta Was this translation helpful? Give feedback.
This behaves as specified: