Files
codeql/csharp/ql/test/library-tests/conversion/nullable/Nullable.ql
2018-12-20 10:19:59 +01:00

16 lines
396 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