Yes but when you do that you loose all the states from "a" (at least the values). You have to do state migration management...
Le 2017-06-07 16:18, Denis Kudriashov a écrit : > 2017-06-07 14:53 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> 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