It must be because you are running an outdated compiler. It works on the 
[playground](https://play.nim-lang.org/?gist=c68172111bbccff68f8e527cef0ff03d).

Reply via email to