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

Type checker shoud unescape field names in projections #840

Closed
PaulKlint opened this issue Jun 30, 2015 · 0 comments
Closed

Type checker shoud unescape field names in projections #840

PaulKlint opened this issue Jun 30, 2015 · 0 comments

Comments

@PaulKlint
Copy link
Member

Here is an example from lang/rascal/tests/basic/Tuples.rsc that I recently added:

alias TUP = tuple[int \n, str \type];
test bool escape6() {  list[TUP] L = [<1, "a">, <2, "b">]; return L<\n> == [1, 2]; }

gives: "Field \\n does not exist". Using L<n> instead works fine.

Conclusion: the type checker shoud unescape field names in projections.

Note: L.\n works fine.

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