Add test cases for cases falling directly out of switch blocks

This commit is contained in:
Chris Smowton
2024-03-25 16:31:12 +00:00
parent 17193ac11b
commit 568bddc4a9
3 changed files with 51 additions and 26 deletions

View File

@@ -26,6 +26,12 @@ public class Exhaustive {
case Y y -> { }
}
// Test the case where a pattern case falls directly out of a block:
switch (i) {
case X _:
case Y _:
}
}
}