Closed jarthana closed 1 month ago
with the latest code the error had gone but the run-time results were wrong - it was branching to default- this gets corrected via the pr #2944
Resolved by https://github.com/eclipse-jdt/eclipse.jdt.core/pull/2944
I made a private note that we still don't have a test case that systematically tests unbox-then-widen in pattern switches. To be added when at leisure.
Here's the test:
ECJ report on the default that Switch case cannot have both unconditional pattern and default label". Looks like somewhere we are omitting the fact that the float is not matching Byte.