Skip to content

[KNOWN ISSUE] Incomplete implementation of some types of Named Value Types #81

Open
@PTKu

Description

@PTKu

Only Named Value Types issue
Compiler misses implementation for STRING, WSTRING, CHAR, WCHAR, Time and date types for named value types

Numerical types should work just fine.


Details

Following named 'Named Value Type Declaration'

TYPE
    ColorAsString : STRING (Red := '1', Green := '2', Blue := '3') := Red;
END_TYPE

will translate like this...

public enum ColorAsString : String
{
    Red = 49,
    Green = 50,
    Blue = 51
}

and

TYPE
    ColorAsString : STRING (Red := 'A1', Green := 'A2', Blue := 'A3') := Red;
END_TYPE
public enum ColorAsString : String
{
    Red = 0,
    Green = 0,
    Blue = 0
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions