Files
codeql/csharp/ql/test/library-tests/conversion/span/span.ql
2025-12-18 12:51:02 +01:00

10 lines
327 B
Plaintext

import semmle.code.csharp.Conversion
private class InterestingType extends Type {
InterestingType() { exists(LocalVariable lv | lv.getType() = this) }
}
from InterestingType sub, InterestingType sup
where convSpan(sub, sup) and sub != sup
select sub.toStringWithTypes() as s1, sup.toStringWithTypes() as s2 order by s1, s2