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 arguments on operators are ignored #277

Open
apblack opened this issue May 1, 2019 · 0 comments
Open

Type arguments on operators are ignored #277

apblack opened this issue May 1, 2019 · 0 comments

Comments

@apblack
Copy link
Contributor

apblack commented May 1, 2019

Prior to commit 8f09626, type arguments to an operator request were treated as an error.
Currently, they are parsed correctly, but they are not stored in the AST, and are not passed to the method at runtime. This needs to be fixed.

js/tests/known-failing/t061_operatorWithTypeArg_test.grace tests for this case.

Because of the way that precedence is handled in the parser, there can be a long interval between reading the type arguments and creating the opNode that ought to store them. The parser should probably get its own operator objects, since these could also implement the precedence rules; right now; the parser represents operators as characters, not operator objects.

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