I don't know if this has some use case I ignore, but I think the following code (just a proof-of-concept) should trigger at least a warning in the IDE
We have a "Case" that contains the same value of another "Case", and another one that has the same value specified multiple times.
The Case line containing the same value of another Case, actually happened to me by a copy/paste mistake and took a while to understand while the code flow was not what I was expecting.
B4X:
Select testvalue
Case 1, 1, 2, 3
'some code
Case 1
'some code
End Select
The Case line containing the same value of another Case, actually happened to me by a copy/paste mistake and took a while to understand while the code flow was not what I was expecting.