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