diff --git a/basis/locals/locals-tests.factor b/basis/locals/locals-tests.factor index 2f5c72a53c..923f890adf 100644 --- a/basis/locals/locals-tests.factor +++ b/basis/locals/locals-tests.factor @@ -493,7 +493,7 @@ M:: integer lambda-method-forget-test ( a -- b ) ; [| | 0 '[ [let | A [ 10 ] | A _ + ] ] call ] call ] unit-test -! Discovered by littledan +! littledan found this problem [ "bar" ] [ [let | a [ [let | foo [ "bar" ] | foo ] ] | a ] ] unit-test [ 10 ] [ [let | a [ 10 ] | [let | b [ a ] | b ] ] ] unit-test @@ -514,4 +514,15 @@ M:: integer lambda-method-forget-test ( a -- b ) ; [ 3 ] [ 3 f erg's-:>-bug-2 ] unit-test -[ 3 ] [ 3 t erg's-:>-bug-2 ] unit-test \ No newline at end of file +[ 3 ] [ 3 t erg's-:>-bug-2 ] unit-test + +! dharmatech found this problem +GENERIC: ed's-bug ( a -- b ) + +M: string ed's-bug reverse ; +M: integer ed's-bug neg ; + +:: ed's-test-case ( a -- b ) + { [ a ed's-bug ] } && ; + +[ t ] [ \ ed's-test-case optimized>> ] unit-test \ No newline at end of file