Skip to content

[Error] typedefs in fail(type x) blocks #8

@arian

Description

@arian

Currently

typedef enum {full} full_error;
MaybeError<void,stack_error> push(int32 x) {
   return Error(full);
}
void main() {
  attempt {
    void p1 ?= push(1);
  } fail (full_error e) {
  }
}

The p1 declaration doesn't resolve to the full_error fail block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions