Merge pull request #20158 from hvitved/csharp/has-callable-constructor

C#: Include constructors in `ValueOrRefType.hasCallable`
This commit is contained in:
Tom Hvitved
2025-08-05 12:59:29 +02:00
committed by GitHub

View File

@@ -201,7 +201,7 @@ class ValueOrRefType extends Type, Attributable, @value_or_ref_type {
*/
pragma[inline]
predicate hasCallable(Callable c) {
this.hasMethod(c)
this.hasMember(c)
or
this.hasMember(c.(Accessor).getDeclaration())
}