Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15be806

Browse files
committed
Java: Add a consistency test for expressions
They should have exactly 1 Type.
1 parent bbbd5d7 commit 15be806

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import java
2+
3+
from Expr e, int n
4+
where n = count(e.getType())
5+
and n != 1
6+
// Java #144
7+
and not e instanceof ReflectiveAccessAnnotation
8+
select e, n
9+

0 commit comments

Comments
 (0)