Skip to content

fix[codegen]: fix iteration over constant literals#4462

Merged
charles-cooper merged 4 commits intovyperlang:masterfrom
charles-cooper:fix/constant-list-iters
Feb 19, 2025
Merged

fix[codegen]: fix iteration over constant literals#4462
charles-cooper merged 4 commits intovyperlang:masterfrom
charles-cooper:fix/constant-list-iters

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper commented Jan 22, 2025

What I did

fix #4461

How I did it

How to verify it

Commit message

the check in `_parse_For_list` is wrong when the iter is a constant
(since the check is syntactic). the fix is to check the `is_literal`
property on the generated IR.

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

the check in `_parse_For_list` is wrong when the iter is a constant
(since the check is syntactic). the fix is to check the `is_literal`
property on the generated IR.
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.12%. Comparing base (9e396fb) to head (0a799b0).
Report is 92 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4462   +/-   ##
=======================================
  Coverage   92.12%   92.12%           
=======================================
  Files         119      119           
  Lines       16962    16962           
  Branches     2872     2872           
=======================================
  Hits        15626    15626           
  Misses        919      919           
  Partials      417      417           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@charles-cooper charles-cooper enabled auto-merge (squash) February 19, 2025 16:01
@charles-cooper charles-cooper merged commit cd31867 into vyperlang:master Feb 19, 2025
159 checks passed
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.

panic when iterating over static arrays

2 participants