Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for arrays #3524

Open
roman-khimov opened this issue Jul 26, 2024 · 0 comments
Open

Add support for arrays #3524

roman-khimov opened this issue Jul 26, 2024 · 0 comments
Labels
compiler Go smart contract compiler enhancement Improving existing functionality I2 Regular impact S4 Routine U3 Regular

Comments

@roman-khimov
Copy link
Member

Is your feature request related to a problem? Please describe.

       {
               "constant index",
               `func F%d() int {
                       a := [2]int{}
                       a[1] = 42
                       return a[1]+0
               }
               `,
               big.NewInt(42),
       },

leads to

                                at instruction 31 (SETITEM): unhandled exception: "The value 1 is out of range."

Describe the solution you'd like

Add support for arrays and slice->array (Go 1.20) conversions.

@roman-khimov roman-khimov added compiler Go smart contract compiler I2 Regular impact U3 Regular enhancement Improving existing functionality S4 Routine labels Jul 26, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
compiler Go smart contract compiler enhancement Improving existing functionality I2 Regular impact S4 Routine U3 Regular
Projects
None yet
Development

No branches or pull requests

1 participant