mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Add test cases for cases falling directly out of switch blocks
This commit is contained in:
@@ -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 _:
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user