Skip to content

Commit 3a24e65

Browse files
committedOct 21, 2022
Comment.
1 parent a1e190c commit 3a24e65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎analysis/reanalyze/src/DeadCommon.ml

+2-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ module Decl = struct
542542
let refIsBelow (pos : Lexing.position) =
543543
decl.pos.pos_fname <> pos.pos_fname
544544
|| decl.pos.pos_cnum < pos.pos_cnum
545-
&& decl.posEnd.pos_cnum < pos.pos_cnum
545+
&& (* not a function defined inside a function, e.g. not a callback *)
546+
decl.posEnd.pos_cnum < pos.pos_cnum
546547
in
547548
refs |> PosSet.exists refIsBelow
548549
in

0 commit comments

Comments
 (0)