1 USING: eval tools.test compiler.units vocabs multiline words
2 kernel classes.mixin arrays ;
5 ! Mixin redefinition did not recompile all necessary words.
7 [ ] [ [ "compiler.tests.redefine11" forget-vocab ] with-compilation-unit ] unit-test
11 USING: kernel math classes arrays ;
12 IN: compiler.tests.redefine11
14 INSTANCE: array my-mixin
15 INSTANCE: fixnum my-mixin
16 GENERIC: my-generic ( a -- b )
17 M: my-mixin my-generic drop 0 ;
18 M: object my-generic drop 1 ;
19 : my-inline ( -- b ) { } my-generic ;
25 array "my-mixin" "compiler.tests.redefine11" lookup
27 ] with-compilation-unit
31 "my-inline" "compiler.tests.redefine11" lookup execute