We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is an example from lang/rascal/tests/basic/Tuples.rsc that I recently added:
lang/rascal/tests/basic/Tuples.rsc
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.
"Field \\n does not exist"
L<n>
Conclusion: the type checker shoud unescape field names in projections.
Note: L.\n works fine.
L.\n
The text was updated successfully, but these errors were encountered:
1090a44
Added two @ignoreCompiler tags to tuple tests, related to issue #840
66f88ee
mahills
No branches or pull requests
Here is an example from
lang/rascal/tests/basic/Tuples.rsc
that I recently added:gives:
"Field \\n does not exist"
. UsingL<n>
instead works fine.Conclusion: the type checker shoud unescape field names in projections.
Note:
L.\n
works fine.The text was updated successfully, but these errors were encountered: