Skip to content

Can't parse static array type property when a type is valid #5539

@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

Nick Treleaven reported this on 2024-09-02T11:16:44Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=24740

Description

template MyTemplate(alias parameter) {}
alias a = MyTemplate!(int[4].init);

Error: found `.` when expecting `)` following template argument list
Error: unexpected identifier `init` after `MyTemplate!(int[4])`

static assert(is(int[3].tupleof[0] == int));

Error: found `.` when expecting `)`
Error: found `tupleof` when expecting `)`

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions