Skip to content

Initializers on typedefs don't work as expected #1522

@abroooo

Description

@abroooo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions