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 for #990 - nested fragment interpolation #991

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist changed the base branch from main to series/0.6.x October 9, 2023 21:26
@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (40c6ede) 84.27% compared to head (4193787) 84.27%.

Additional details and impacted files
@@              Coverage Diff              @@
##           series/0.6.x     #991   +/-   ##
=============================================
  Coverage         84.27%   84.27%           
=============================================
  Files               126      126           
  Lines              1736     1736           
  Branches            160      160           
=============================================
  Hits               1463     1463           
  Misses              273      273           

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

@mpilquist mpilquist changed the title Fix for #990 Fix for #990 - nested fragment interpolation Oct 9, 2023
else if legacyCommandSyntax then encoders.reduceLeft {
case ('{$a : Encoder[a]}, '{ $b : Encoder[b] }) => '{$a ~ $b}
} else encoders.reduceRight {
case ('{$a : Encoder[a]}, '{ $b : Encoder[bh *: bt] }) => '{$a *: $b}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main issue was here, where the nested encoder would cause this line to be matched instead of the next line, resulting in extending the tuple type of the fragment encoder.

@mpilquist mpilquist merged commit 372f697 into series/0.6.x Oct 10, 2023
29 checks passed
@mpilquist mpilquist deleted the bugfix/990 branch October 10, 2023 11:41
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