Switch specification doesn't match implementation. #2354
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Implementations of switch currently throw an exception if a case (except the last one) reaches the end of the case body, i.e., where someone might mistakenly expect a fallthrough.
The specification doesn't say that this should happen, but instead just lets execution continue after the switch.
There doesn't seem to be consensus on which behavior is correct.
The text was updated successfully, but these errors were encountered: