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

functions: Fix sum() of all strings #30684

Merged
merged 1 commit into from Mar 16, 2022
Merged

functions: Fix sum() of all strings #30684

merged 1 commit into from Mar 16, 2022

Commits on Mar 16, 2022

  1. functions: Fix sum() of all strings

    The sum() function accepts a collection of values which must all convert
    to numbers. It is valid for this to be a collection of string values
    representing numbers.
    
    Previously the function would panic if the first element of a collection
    was a non-number type, as we didn't attempt to convert it to a number
    before calling the cty `Add` method.
    alisdair committed Mar 16, 2022
    Copy the full SHA
    0764726 View commit details
    Browse the repository at this point in the history