1 USING: eval tools.test compiler.units vocabs words
3 IN: compiler.tests.redefine9
5 ! Mixin redefinition did not recompile all necessary words.
7 { } [ [ "compiler.tests.redefine9" forget-vocab ] with-compilation-unit ] unit-test
10 "USING: kernel math math.order sorting ;
11 IN: compiler.tests.redefine9
13 INSTANCE: fixnum my-mixin
14 GENERIC: my-generic ( a -- b )
15 ! We add the bogus quotation here to hinder inlining
16 ! since otherwise we cannot trigger this bug.
17 M: my-mixin my-generic 1 + [ sort ] drop ;"
23 IN: compiler.tests.redefine9
25 INSTANCE: my-tuple my-mixin"
30 "my-tuple" "compiler.tests.redefine9" lookup-word boa
31 "my-generic" "compiler.tests.redefine9" lookup-word
33 ] [ no-math-method? ] must-fail-with