http://d.puremagic.com/issues/show_bug.cgi?id=6378
Summary: Overriding opAssign disables ability to null a reference Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-07-25 07:35:28 PDT --- class Foo { void opAssign(int bar) { } } void main() { auto foo = new Foo; foo = null; } test.d(11): Error: function test.Foo.opAssign (int bar) is not callable using argument types (void*) test.d(11): Error: cannot implicitly convert expression (null) of type void* to int -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------