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()
Fixed DMD2.050.