File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples/deadcode/expected Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2592,8 +2592,6 @@ File References
2592
2592
Incorrect Dead Annotation
2593
2593
File "DeadTest.res", line 178, characters 1-23
2594
2594
deadIncorrect is annotated @dead but is live
2595
- <-- line 178
2596
- @dead("deadIncorrect") let deadIncorrect = 34
2597
2595
2598
2596
Warning Unused Argument
2599
2597
File "TestOptArg.res", line 9, characters 1-66
Original file line number Diff line number Diff line change @@ -401,7 +401,9 @@ let emitWarning ~decl ~message deadWarning =
401
401
| _ -> false
402
402
in
403
403
let shouldWriteAnnotation =
404
- (not (isToplevelValueWithSideEffects decl)) && Suppress. filter decl.pos
404
+ (not (isToplevelValueWithSideEffects decl))
405
+ && Suppress. filter decl.pos
406
+ && deadWarning <> IncorrectDeadAnnotation
405
407
in
406
408
let lineInfo =
407
409
if shouldWriteAnnotation then decl |> WriteDeadAnnotations. onDeadDecl
You can’t perform that action at this time.
0 commit comments