slavapestov/factor — Issue #469: "Bug in locals" on writing stupid code
Author: mlochbaum
Created: 2012-01-11 01:49:47+00:00
State: open

Well, I was trying to implement Knuth's man or boy test in Factor and got the message

You have found a bug in locals. Please report.
args [ ]
obj k

Here's the shortest I could get the code. Removing any of the references to k removes the error.

:: A ( k! -- )
: BB ( -- n ) 1 :> k! k ;
k ;

Tested on 32 bit Linux.