bakpakin / Fennel

Lua Lisp Language
https://fennel-lang.org
MIT License
2.42k stars 124 forks source link

Incomplete `for` binding table results in bad code generated #457

Closed dokutan closed 1 year ago

dokutan commented 1 year ago

When calling for with an incomplete binding table, a Bad code generated - likely a bug with the compiler error is produced.

For example:

>> (for [i 1] (print i))
Bad code generated - likely a bug with the compiler:
--- Generated Lua Start ---
for i = 1 do
  print(i)
end

return nil--- Generated Lua End ---
technomancy commented 1 year ago

Thanks for catching this! It's fixed in 1.3.1.