8000 Bug: `ClsCatch` in case expressions · Issue #101 · yutopp/obeam · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bug: ClsCatch in case expressions #101

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

Open
yoshihiro503 opened this issue Aug 20, 2019 · 0 comments
Open

Bug: ClsCatch in case expressions #101

yoshihiro503 opened this issue Aug 20, 2019 · 0 comments

Comments

@yoshihiro503
Copy link
Contributor

The clauses in case expressions must be ClsCase, but not.

For example:

main(X) ->
    case X of
        {abc, Foo, Bar} -> ok
    end.

Current obeam (0.1.5) treats the clause in this code as an ClsCatch.

(ClsCatch (line 7) (line_cls 7) (line_stacktrace 7)
 (exception_class (AtomVarAtom (line 7) (atom abc)))
 (pattern (PatVar (line 7) (id Foo))) (stacktrace Bar) (guard_sequence ())
 (body (ExprBody (exprs ((ExprLit (lit (LitAtom (line 7) (atom ok)))))))))
youxkei added a commit to youxkei/obeam that referenced this issue Aug 27, 2019
youxkei added a commit to youxkei/obeam that referenced this issue Aug 27, 2019
youxkei added a commit to youxkei/obeam that referenced this issue Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0