status-im/nim-taskpools
Spurious warning: cannot raise 'AssertionDefect' [XCannotRaiseY]
Offen
#27 geöffnet am 03.01.2023
good first issue
Repository-Metriken
- Stars
- (121 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
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