acbbfd60fb
In a recent change I added a new value to an enum and had no easy way to statically find all the switches where I might need to handle that new enum value. Instead I had to wait for runtime errors (or worse-yet incorrect generated code) to find what I had missed. Though it may be add a little inconvience to now allow "default" cases, the static warnings/checks it provides are worth it. Change-Id: I2347bcec77ee8bc0a5618ea4dbc6e0840bdf2f6c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343321 Commit-Queue: Nate Biggs <natebiggs@google.com> Reviewed-by: Mayank Patke <fishythefish@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>