1 USING: eval tools.test compiler.units vocabs multiline words
2 kernel classes.mixin arrays ;
3 IN: compiler.tests.folding
5 ! Calls to generic words were not folded away.
7 [ ] [ [ "compiler.tests.redefine11" forget-vocab ] with-compilation-unit ] unit-test
12 IN: compiler.tests.folding
13 GENERIC: foldable-generic ( a -- b ) foldable
14 M: integer foldable-generic f <array> ;
21 IN: compiler.tests.folding
22 : fold-test ( -- x ) 10 foldable-generic ;
27 "fold-test" "compiler.tests.folding" lookup execute
28 "fold-test" "compiler.tests.folding" lookup execute