Guest User

Untitled

a guest
Jan 2nd, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class B
  2. {
  3.    
  4. }
  5.  
  6. class A : B
  7. {
  8.     void opAssign(B b) // test.d(6): Error: class test.A identity assignment operator overload is illegal
  9.     {
  10.        
  11.     }
  12. }
  13.  
  14. void main()
  15. {
  16.     A a;
  17.     B b;
  18.     //a = b; //<- but this is illegal otherwise!
  19. }
Advertisement
Add Comment
Please, Sign In to add comment