Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arian opened this issue Nov 19, 2015 · 0 comments
Open

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

arian opened this issue Nov 19, 2015 · 0 comments
Labels

Comments

@arian
Copy link
Owner

arian commented Nov 19, 2015

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.

@arian arian added the error label Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant