Suppose i have a match
with some case
statements and one of them is flagged as follows:
[warn] -- [E030] Match case Unreachable Warning: ...src/main/scala/ ...
[warn] | case <pattern> => <statement>
[warn] | ^^^^^^^^^
[warn] | Unreachable case
I always interpreted this as that the statement
would never be executed, independent of what is matched. But this is probably incorrect, given the fact that my issue report on a situation where the statement did get executed under this warning was closed under the motivation “is as expected”.
Thank you for any clous.