Skip to content

Primitive types cannot be used as array types #1

@Hawkbat

Description

@Hawkbat

Currently array definitions only allow struct identifiers as their type, not primitive type identifiers. For example, map int colors[256] at 0 throws a syntax error but map Color colors[256] at 0 does not. The workaround is to define a struct with a single member matching the primitive type desired, but that's not ideal. As far as I can remember there's nothing actually preventing this from being allowed, just an issue with the syntax validation only allowing one type of child AST node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions