You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining structs by their member names in a different order than the one in the struct definition is not respecting the member names when accessing them later on.
Expected behavior:
struct members should follow argument names, the compiler should re-order them when a struct is created with explicit members names, otherwise it can be extremely misleading.
feltroidprime
changed the title
bug: const Struct has inverted field members.
bug: const Struct has swapped field members values.
Nov 10, 2024
feltroidprime
changed the title
bug: const Struct has swapped field members values.
bug: defining a struct by its member names in a different order than the definition is swapping field values
Nov 10, 2024
Bug Report
Cairo version:
2.8.4
Current behavior:
Defining structs by their member names in a different order than the one in the struct definition is not respecting the member names when accessing them later on.
Expected behavior:
struct members should follow argument names, the compiler should re-order them when a struct is created with explicit members names, otherwise it can be extremely misleading.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: