Skip to content

elemsof needs an instantiation, should not need one #413

@bvdberg

Description

@bvdberg
type Struct struct {
    u32[10] array;
}

const u32 Count = elemsof(Struct.array);  // error: member access needs an instantiation of type 'test.Struct'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions