-
-
Notifications
You must be signed in to change notification settings - Fork 836
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: reorder AST folding after semantics validation #2832
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2832 +/- ##
==========================================
- Coverage 88.29% 88.11% -0.19%
==========================================
Files 97 97
Lines 10919 10988 +69
Branches 2583 2558 -25
==========================================
+ Hits 9641 9682 +41
- Misses 830 864 +34
+ Partials 448 442 -6
Help us with your feedback. Take ten seconds to tell us how you rate us. |
…constant_typecheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like there is some code that is duplicated in structure. is there some way we can refactor _validate_numeric_bounds
to address these cases?
it is also very weird to see typechecking code in AST construction. is it possible to move these to the constant folder module? |
I have moved the typechecking to |
What I did
Fix #2830, and stricter type safety for literal operations.
How I did it
not_assignable
flag toBaseTypeDefinition
.How to verify it
See new tests, and updated tests.
Commit message
Description for the changelog
Type-check and bounds-check literal ops involving literals from constant folding.
Cute Animal Picture