Bug 11423 – Error: new can only create structs, dynamic arrays or class objects, not _error_'s
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-02T16:32:00Z
Last change time
2013-11-03T00:48:44Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
shammah.chancellor
Comments
Comment #0 by shammah.chancellor — 2013-11-02T16:32:15Z
void main()
{
auto foo = new shared Foo();
}
dmd produces:
test.d(3): Error: undefined identifier shared(Foo)
test.d(3): Error: new can only create structs, dynamic arrays or class objects, not _error_'s
Which I certainly hope would be true. :D I don't want new to be producing any errors for me.