CodeQL library for C#
codeql/csharp-all 0.9.0 (changelog, source)
Search

Predicate Unification::subsumes

Holds if type t1 subsumes type t2. That is, it is possible to replace all type parameters in t1 with some (other) types to make the two types equal.

The same limitations that apply to the predicate unifiable() apply to this predicate as well.

Note: This predicate is inlined.

Import path

import semmle.code.csharp.Unification
predicate subsumes(Type t1, Type t2)