A2346: Directive or instruction not allowed in a type definition

[ERROR]

Description

An instruction or an invalid directive has been detected in a structured type definition. Only following directives are allowed in a structured type definition:

Not all assembler backends do support structured types. Assembler not supporting them will not issue this message.

Example
  myType: STRUCT

  field1:   DS.W 1

  field2:   DS.W 1

  field3:   DS.B 1

  cst:      DC.B $34

  field4:   DS.B 3

  field5:   DS.W 1

          ENDSTRUCT
  
Tips

Remove the invalid directive or instruction.

Example
  myType: STRUCT

  field1:   DS.W 1

  field2:   DS.W 1

  field3:   DS.B 1

  field4:   DS.B 3

  field5:   DS.W 1

          ENDSTRUCT