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

Fix parsing of -1::Int - signed literals with type assertions #462

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

c42f
Copy link
Member

@c42f c42f commented Jul 16, 2024

This syntax is normally not something you'd use, but it's very useful for ccall. Previously the parser just crashed on this kind of input - a bug which is also present in the old parser.

This syntax is normally not something you'd use, but it's very useful
for `ccall`. Previously the parser just crashed on this kind of input -
a bug which is also present in the old parser.
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.51%. Comparing base (ae7d6ac) to head (388146d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #462      +/-   ##
==========================================
+ Coverage   96.43%   96.51%   +0.07%     
==========================================
  Files          14       14              
  Lines        4208     4213       +5     
==========================================
+ Hits         4058     4066       +8     
+ Misses        150      147       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@c42f c42f added parser bug Something isn't working labels Jul 16, 2024
@c42f c42f merged commit ebcc56a into main Jul 16, 2024
38 checks passed
@c42f c42f deleted the caf/fix-neg-typeassert-parsing branch July 16, 2024 09:40
c42f added a commit that referenced this pull request Jul 21, 2024
This syntax is normally not something you'd use, but it's very useful
for `ccall`. Previously the parser just crashed on this kind of input -
a bug which is also present in the old parser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant