Files
codeql/csharp/ql/test/library-tests/conversion/nullable/Nullable.ql
2018-08-02 17:53:23 +01:00

16 lines
394 B
Plaintext

import semmle.code.csharp.Conversion
class InterestingType extends Type {
InterestingType() {
this instanceof IntegralType
or this instanceof CharType
or this.(NullableType).getUnderlyingType() instanceof InterestingType
}
}
from InterestingType sub, Type sup
where convNullableType(sub, sup)
and sub != sup
select sub.toString() as s1, sup.toString() as s2
order by s1, s2