Add support for arrays #1337

Open
opened 2025-12-28 17:16:05 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (Jul 26, 2024).

       {
               "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.

Originally created by @roman-khimov on GitHub (Jul 26, 2024). ## 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1337
No description provided.