uid / snapdown

Draw snapshot diagrams with plain text
MIT License
3 stars 0 forks source link

Infinite loop when a reassigned field and "sub-field" are named the same #22

Open dwhatley19 opened 3 years ago

dwhatley19 commented 3 years ago

Easy repro: https://web.mit.edu/dwhatley/www/snapdown/web/production.html#%0Alist123%20-%3E%20((Cons%20elt%20-%3E%201%2C%20rest%2323%20-%3E%20((Cons%20elt%20-%3E%202%2C%20rest%20-%3E%20((Cons%20elt%20-%3E%203%2C%20rest%20-%3E%20((Empty))))))))%0A%0Aforever123%20-%3E%20((Cons%20elt%20-x%3E%20list123%2C%20elt%20-%3E%20rest%2323%2C%20rest%20-%3E%20((Cons%20elt%20-%3E%20list123%2C%20rest%20-%3E%20%23e))))%0A%0A%23e%20-%3E%20((Empty))