Single fallthrough not allowed
XmiliaH opened this issue · 2 comments
XmiliaH commented
Currently cases with just a fallthrough statement are not allowed which seems strage to me.
switch 1 do
case 1:
--[[@fallthrough]]
case 2:
end
Sainan commented
I can't say if this was intended, but I'm also not sure of the merit of allowing the developer to write nonsensical annotations like this.
XmiliaH commented
I do not really care if it is or is not allowed, but I would not say that this is always a nonsensical annotations. Maybe there is a developer out there who has a special case in the switch statment that is empty and should fall trhough and mark this case as such to make it distinct, yet obvious.