mirror of
https://github.com/status-im/NimYAML.git
synced 2025-01-12 20:44:46 +00:00
4933194dd6
61720e0df9475af647de171f6b2964c36234961a in the Nim compiler introduced the bug in this project. In brief, the upstream change flattens `nnkStmtList`s of one item. Thus, `quote do:` followed by one statement is no longer a nnkStmtList but whatever that one statement is. This breaks several macro implementations where a `quote do:` form is initialized and then appended to. Based on Araq's feedback (https://irclogs.nim-lang.org/02-10-2017.html#21:01:26), these single-statement quotes are now converted into one-element statement lists as necessary (behavior on old versions of the compiler is maintained).