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

Compiler does not handle callOrTree patterns in list patterns correctly. #516

Closed
Anastassija opened this issue Feb 26, 2014 · 0 comments
Closed
Assignees

Comments

@Anastassija
Copy link
Contributor

The following match returns false:

data A = a();

[ a() ] := [ a() ]

I believe this has something to do with translatePatternAsConstant. Println from within MATCH_LITERAL_IN_LIST shows the problem:

"MATCH_LITERAL_IN_LIST: false" "a"() [IValue] 0 [Java] a() [IValue]

@PaulKlint, could you, please, take a look? This issue does not happen in set patterns, though.

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