1 USING: math fry macros eval tools.test ;
2 IN: compiler.tests.redefine13
4 : breakage-word ( a b -- c ) + ;
6 MACRO: breakage-macro ( a -- ) '[ _ breakage-word ] ;
8 GENERIC: breakage-caller ( a -- c )
10 M: fixnum breakage-caller 2 breakage-macro ;
12 : breakage ( -- obj ) 2 breakage-caller ;
14 ! [ ] [ "IN: compiler.tests.redefine13 : breakage-word ( a b -- c ) ;" eval ] unit-test