Skip to content

Commit 51661bf

Browse files
committed
Add pragma noinline to fix uselessUpcast check
1 parent 91bd3d1 commit 51661bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/src/semmle/code/csharp/Callable.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ class ExtensionMethod extends Method {
313313
override predicate isStatic() { any() }
314314

315315
/** Gets the type being extended by this method. */
316+
pragma[noinline]
316317
Type getExtendedType() { result = getParameter(0).getType() }
317318

318319
override string getAPrimaryQlClass() { result = "ExtensionMethod" }

0 commit comments

Comments
 (0)