rusty icon indicating copy to clipboard operation
rusty copied to clipboard

Initializers on typedefs don't work as expected

Open abroooo opened this issue 4 months ago • 0 comments

Describe the bug

TYPE myStruct: STRUCT
  a : INT;
END_STRUCT
END_TYPE

TYPE mytypedefstruct: myStruct:=(a := 3); END_TYPE
TYPE mysubtype: mytypedefstruct;  END_TYPE
TYPE mysubtype2: mysubtype;  END_TYPE

Typedef instances won't take the initializer of mytypedefstruct as they should. It does not compile.

To Reproduce

Expected behavior When creating an instance of mysubtype2 I expect the a element to have a value of 3.

abroooo avatar Sep 15 '25 07:09 abroooo