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

cty: add CanListFunc, CanSetFunc, CanMapFunc #91

Merged
merged 1 commit into from
Mar 16, 2021

Commits on Mar 16, 2021

  1. convert: Don't panic when collection element type unification fails

    Despite our best efforts to correctly unify element types during conversion,
    sometimes some inconsistent types slip through anyway and make the
    conversion panic.
    
    Although in the long run it would be better to fix these problems upstream,
    it's the responsibility of the caller of cty to not try to perform any
    invalid operations, and so here we make the convert package pre-verify
    that it's found a sensible result before trying to construct it, and
    thus it can return a proper error if not rather than panicking.
    mildwonkey authored and apparentlymart committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    139e794 View commit details
    Browse the repository at this point in the history