← Back to index
|
Original Bugzilla link
Bug 3705 – Can't add structs with alias this to an AA.
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-01-14T08:37:00Z
Last change time
2015-06-09T01:27:14Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0
by dsimcha — 2010-01-14T08:37:31Z
struct Foo { alias returnOne this; uint returnOne() { return 1; } } void main() { Foo[string] AA; AA["bar"] = Foo.init; } Errors: test.d(12): Error: function test.Foo.returnOne () is not callable using argument types (Foo) test.d(12): Error: expected 0 arguments, not 1 for non-variadic function type uint()
Comment #1
by clugdbug — 2010-11-01T13:35:25Z
Fixed DMD2.050.