Summary: Overriding opAssign disables ability to null a
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to