http://d.puremagic.com/issues/show_bug.cgi?id=8549
Summary: Bad error message with const methods Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-08-15 06:07:31 PDT --- This needs a much better error message: struct Foo { int[] opSlice() { return [0]; } } struct Bar { Foo spam; const(Foo) bar() const { return spam; } } void main() { Bar().bar()[]; } DMD 2.061alpha gives: test.d(11): Error: function test.Foo.opSlice () is not callable using argument types () -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------