Ruby: Fix bug in allowParameterReturnInSelf

This commit is contained in:
Tom Hvitved
2024-02-22 09:43:52 +01:00
parent 007d08ea63
commit 23869fc8e6
2 changed files with 14 additions and 2 deletions

View File

@@ -2177,7 +2177,7 @@ predicate allowParameterReturnInSelf(ParameterNodeImpl p) {
FlowSummaryImpl::Private::summaryAllowParameterReturnInSelf(c.asLibraryCallable(), pos)
)
or
VariableCapture::Flow::heuristicAllowInstanceParameterReturnInSelf(p.(SelfParameterNode)
VariableCapture::Flow::heuristicAllowInstanceParameterReturnInSelf(p.(LambdaSelfReferenceNode)
.getCallable())
}