Skip to content

Fix apparent regression on Evaluate#342

Merged
xoofx merged 2 commits intoscriban:masterfrom
NeilMacMullen:regression_336
Apr 30, 2021
Merged

Fix apparent regression on Evaluate#342
xoofx merged 2 commits intoscriban:masterfrom
NeilMacMullen:regression_336

Conversation

@NeilMacMullen
Copy link
Copy Markdown
Contributor

@NeilMacMullen NeilMacMullen commented Apr 30, 2021

Addresses #336 which appears to have been introduced with commit d77a237 "Improve handling of top-level evaluation with enumeration"

The issue was that the test for IEnumerable snags strings (which are IEnumerable of chars) and recasts them to ScriptArrays of chars

Not sure if there are any other relevant types that can present as IEnumerable - string was the only one I could think of off the top of my head?

@xoofx xoofx merged commit af9baec into scriban:master Apr 30, 2021
@xoofx
Copy link
Copy Markdown
Member

xoofx commented Apr 30, 2021

Good catch, thanks!

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.

2 participants