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

13 lines
250 B
Plaintext

/**
* @name Test for destructors
*/
import csharp
from Destructor d, ValueOrRefType t
where t = d.getDeclaringType()
and not t instanceof ConstructedGeneric
and not t instanceof UnboundGenericType
and d.getName() != "~" + t.getName()
select t, d