What's your Nim version?

Your code compile as is for me on both Nim 0.20.2 and Nim 1.0.2.

Reply via email to