Closed
Description
When a template specification introduces a new property with an Enum return type, the generated code checks the ActingVersion and outputs "return null" if it is too low. This doesn't compile.
public AttribValue AttribValue
{
get
{
if (_actingVersion < 3) return null; // compile error
return (AttribValue)_buffer.Uint32GetLittleEndian(_offset + 0);
}
... setter
}
From schema file:
<set name="AttribValue" encodingType="uInt32" sinceVersion="3">
<choice name="FirstChoice" description="The first choice">0</choice>
...
</set>
Should the return type be AttribValue?
as a fix?
Metadata
Metadata
Assignees
Labels
No labels