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

Skip to content

Commit 0f7f90d

Browse files
committed
Kotlin: Add a consistency query for Kotlin types
1 parent 86bf126 commit 0f7f90d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java
2+
3+
predicate badKotlinType(Element e, int i) {
4+
e = any(Expr expr | count(expr.getKotlinType()) = i)
5+
}
6+
7+
from Element e, int i
8+
where e.getFile().isKotlinSourceFile()
9+
and badKotlinType(e, i)
10+
and i != 1
11+
select e, i
12+

0 commit comments

Comments
 (0)