You mention that you installed Nim a while ago, which version of Nim are you using? If you're using an older version but reading the latest docs this might be the reason for the contradiction, especially since @void09 seems to not be able to replicate your issue.
By the way, I took the liberty to add a triple-backtick code block around your code so that it is formatted correctly which makes it quite a bit easier to read.
