mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Fix pretty-printing of anonymous vars and multiple patterns; add test
This commit is contained in:
@@ -45,6 +45,13 @@ public class Test {
|
||||
|
||||
if (o instanceof R(S(var x), var y)) { }
|
||||
|
||||
switch(o) {
|
||||
case String _, Integer _:
|
||||
case R(S(_), _):
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
//semmle-extractor-options: --javac-args --release 21
|
||||
//semmle-extractor-options: --javac-args --release 22
|
||||
|
||||
@@ -84,5 +84,11 @@
|
||||
| Test.java:1:14:1:17 | Test | 83 | } |
|
||||
| Test.java:1:14:1:17 | Test | 84 | if (o instanceof R(S(var x), var y)) { |
|
||||
| Test.java:1:14:1:17 | Test | 85 | } |
|
||||
| Test.java:1:14:1:17 | Test | 86 | } |
|
||||
| Test.java:1:14:1:17 | Test | 87 | } |
|
||||
| Test.java:1:14:1:17 | Test | 86 | switch (o) { |
|
||||
| Test.java:1:14:1:17 | Test | 87 | case String _, Integer _: |
|
||||
| Test.java:1:14:1:17 | Test | 88 | case R(S(var _), var _): |
|
||||
| Test.java:1:14:1:17 | Test | 89 | default: |
|
||||
| Test.java:1:14:1:17 | Test | 90 | break; |
|
||||
| Test.java:1:14:1:17 | Test | 91 | } |
|
||||
| Test.java:1:14:1:17 | Test | 92 | } |
|
||||
| Test.java:1:14:1:17 | Test | 93 | } |
|
||||
|
||||
Reference in New Issue
Block a user