Skip to content

Spurious warning: cannot raise 'AssertionDefect' [XCannotRaiseY] #27

@mratsim

Description

@mratsim

See: https://forum.nim-lang.org/t/9774

{.push raises: [AssertionDefect].} # Ensure no exceptions can happen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions