polserver/testsuite/escript/struct/struct010.out
turleypol 6ff48974cc
Code cleanup (structs and container add) (#842)
* BStruct cleanup

* container::add method has now a parameter for the position. reduces the
ambigous setposition calls.
And makes it clearer where the item is created.
removed in the touched headers the non needed virtual.

* removed exception when accessing a struct via an integer, no need to
crash the shard

* fixed test

* missed one virtual
2026-01-03 23:02:53 +01:00

5 lines
170 B
Text

9
error{ errortext = "Struct members can only be accessed by name" }
42
error{ errortext = "Struct members can only be accessed by name" }
struct{ a = 4, b = 9, c = 42 }