Kotlin: Add getAPrimaryQlClass.ql consistenty check

This commit is contained in:
Ian Lynagh
2021-08-19 14:00:22 +01:00
parent 4837e4e46a
commit f29a45ea98

View File

@@ -0,0 +1,13 @@
import java
from Top t
where t.getAPrimaryQlClass() = "???"
// TypeBound doesn't extend Top (but probably should)
and not t instanceof TypeBound
// XMLLocatable doesn't extend Top (but probably should)
and not t instanceof XMLLocatable
// Kotlin bug:
and not t.(Type).toString() = "string"
select t,
concat(t.getAPrimaryQlClass(), ","),
concat(t.getAQlClass(), ",")