Skip to content

Commit 554386d

Browse files
committed
C#: Include constructors in ValueOrRefType.hasCallable
1 parent 9aebc58 commit 554386d

File tree

1 file changed

+2
-0
lines changed
  • csharp/ql/lib/semmle/code/csharp

1 file changed

+2
-0
lines changed

csharp/ql/lib/semmle/code/csharp/Type.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ class ValueOrRefType extends Type, Attributable, @value_or_ref_type {
204204
this.hasMethod(c)
205205
or
206206
this.hasMember(c.(Accessor).getDeclaration())
207+
or
208+
c = this.getAConstructor()
207209
}
208210

209211
/**

0 commit comments

Comments
 (0)