DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

Splice assignment with loop #1258

Closed edemaine closed 1 month ago

edemaine commented 1 month ago

Mistranslation in cli.civet:

      args[i..i] =
        for each char of arg[1..]
          `-${char}`
↓↓↓
      args.splice(i, 1 + i - i, ...results)

(Note: results isn't declared.)

Originally posted by @edemaine in https://github.com/DanielXMoore/Civet/issues/1254#issuecomment-2119356319