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

Cases expressions don't work #306

Open
Pytheas01 opened this issue Mar 4, 2015 · 0 comments
Open

Cases expressions don't work #306

Pytheas01 opened this issue Mar 4, 2015 · 0 comments

Comments

@Pytheas01
Copy link

Consider the following function in SymphonyTool 0.4:

headAndTail: seq of nat -> seq of nat
headAndTail(l) ==
cases l:
[] -> []
[h] ^ l2 -> l2
end

The following error message appears to the left of the empty sequence case:

no viable alt; token=[@735,2364:2365='[]',<72>,144:4](decision=171 state 0) decision=<<>>.

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

No branches or pull requests

1 participant