Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class B
- {
- }
- class A : B
- {
- void opAssign(B b) // test.d(6): Error: class test.A identity assignment operator overload is illegal
- {
- }
- }
- void main()
- {
- A a;
- B b;
- //a = b; //<- but this is illegal otherwise!
- }
Advertisement
Add Comment
Please, Sign In to add comment