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

Diagnose not yet implemented 'in' operator #2629

Merged
merged 1 commit into from Jan 22, 2023
Merged

Diagnose not yet implemented 'in' operator #2629

merged 1 commit into from Jan 22, 2023

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jan 22, 2023

Addresses (only) the assertion seen in #2628, where parsing an unsupported complex type ends up interpreting the input as a yet unsupported in operator. Adds the in operator as a case of BinaryExpression for now that is then diagnosed as AS100 Not implemented.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO dcodeIO requested a review from MaxGraey January 22, 2023 14:49
@MaxGraey
Copy link
Member

As I understand, in operator can be specified in two contexts. Both an operator for operations with types and an operator that checks the presence of a property in an object. So this PR covers only the second part of the use of this operator, right?

@dcodeIO
Copy link
Member Author

dcodeIO commented Jan 22, 2023

Right, such a type cannot be parsed currently, so this PR only fixes that an assertion is hit during error recovery. Is useful independently, since a normal in operator that is not part of a type produces the same assertion (see test case).

@dcodeIO dcodeIO merged commit 7ccadf0 into main Jan 22, 2023
@HerrCai0907 HerrCai0907 deleted the issue-2628 branch October 17, 2023 09:00
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

Successfully merging this pull request may close these issues.

None yet

2 participants