Bug 14899 – NewExpression does not recognize tuple indexing
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-08-10T11:20:00Z
Last change time
2015-08-10T17:21:29Z
Keywords
rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2015-08-10T11:20:05Z
Test case:
alias TypeTuple(T...) = T;
void main()
{
alias A = TypeTuple!(Object);
auto o = new A[0]();
}
output:
test.d(6): Error: new can only create structs, dynamic arrays or class objects, not (Object)'s
Comment #1 by k.hara.pg — 2015-08-10T17:21:29Z
*** This issue has been marked as a duplicate of issue 11581 ***