[Issue 24740] New: Can't parse static array type property when a type is valid
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 2 11:16:44 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24740
Issue ID: 24740
Summary: Can't parse static array type property when a type is
valid
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
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 `)`
--
More information about the Digitalmars-d-bugs
mailing list