Commit d17e312
Add a regression test for a crash in MissingCasesInEnumSwitch when using an expression switch with RULE cases.
I had no idea this was allowed. I think I internalised expression switches and statement cases as being inextricably coupled. I am now worried I have leaked a bad assumption into other places!
PiperOrigin-RevId: 7791806441 parent 7d8fd68 commit d17e312
File tree
1 file changed
+25
-0
lines changed- core/src/test/java/com/google/errorprone/bugpatterns
1 file changed
+25
-0
lines changedLines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
485 | 510 | | |
0 commit comments