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: handle untyped constant expressions in append() #1177

Merged
merged 9 commits into from
Jan 10, 2024

Commits on Sep 27, 2023

  1. fix: append nil to an array was causing a panic

    This is a particular case of Go append builtin where the array
    type is inferred from the first argument. We detect using untyped
    nil as argument, then we convert it to the array type prior to
    proceeed further. It fixes further consistency checks and value
    generation.
    
    Fixes gnolang#1136.
    mvertes committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    aabf7c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0432faf View commit details
    Browse the repository at this point in the history
  3. cosmetic

    mvertes committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    1455aa7 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Configuration menu
    Copy the full SHA
    4e8c3cf View commit details
    Browse the repository at this point in the history
  2. Update gnovm/pkg/gnolang/preprocess.go

    Co-authored-by: Morgan <[email protected]>
    mvertes and thehowl authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    196c6fb View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. fix: catch forbidden conversions of undefined nil to scalar types

    This is done in ConverTo, so hopefully it works both at parsing
    and during execution, and for composite types.
    
    Some additional test cases have been added too.
    mvertes committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    42c657e View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. Configuration menu
    Copy the full SHA
    3d08d54 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Configuration menu
    Copy the full SHA
    1779b8f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04614ec View commit details
    Browse the repository at this point in the history