status-im/nim-taskpools
Spurious warning: cannot raise 'AssertionDefect' [XCannotRaiseY]
Aperta
#27 aperta il 3 gen 2023
good first issue
Metriche repository
- Star
- (121 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
See: https://forum.nim-lang.org/t/9774
The precondition can in fact raise AssertionDefect https://github.com/status-im/nim-taskpools/blob/89d693d/taskpools/instrumentation/contracts.nim#L91 unless when code is compiled without assertions (danger for example).
An easy fix would be to push that hint off