2017-06-07 14:53 GMT+02:00 Steven Costiou <[email protected]>: > I want to do the following: > > B adoptInstance: a > > It does'nt work, for what i understand it is because the format of the > classes are different (B has an inst var and A has not). >
Yes, #adopt checks class format. Use need to use #become to achieve what you want: a becomeForward: B new
