Bug 1281 – Cannot make invariant(blah)[] members in classes

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-06-19T13:29:00Z
Last change time
2014-02-14T20:35:36Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
jarrett.billingsley

Comments

Comment #0 by jarrett.billingsley — 2007-06-19T13:29:45Z
It's a parsing bug. class A { invariant(dchar)[] mData; } Gives the error "foo.d(7): Declaration expected, not '('" However, aliasing this type and making the member that alias works: alias invariant(dchar) idchar; class A { idchar[] mData; }
Comment #1 by jarrett.billingsley — 2007-06-19T14:09:48Z
RRgh. It was found already. *** This bug has been marked as a duplicate of 1279 ***