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

Two visit tests fail #434

Closed
PaulKlint opened this issue Dec 11, 2013 · 0 comments
Closed

Two visit tests fail #434

PaulKlint opened this issue Dec 11, 2013 · 0 comments
Assignees

Comments

@PaulKlint
Copy link
Member

data NODE1 = f(value V) | f(value V1, value V2) | f(value V1, value V2, value V3) | g(value V1, value V2) | h(value V1, value V2)|h(value V1, value V2, value V3);

NODE1 walk(NODE1 t) {
     return visit(t) {
        case int N=>x when x:=N*2, x>=1
        };
     }

public test bool When2()= walk(f(1,2,3)) == f(2,4,6);
public test bool When3()= walk(f(1,g(2,3))) == f(2, g(4, 6));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants