So I'm going through the tutorials on the website, right. I get to the "Case statement" part of the tutorial and I copy/paste the code in to see how it works. But the compiler throws the error "Error: duplicate case label" when I try to compile it! I couldn't find any other answers to this question so I posted on here.
from strutils import parseInt
echo "Enter a number: "
let n = parseInt(readLine(stdin))
case n
of 0..7:
echo "The number is in the set: {0, 1, 2, 4, 5, 6, 7}"
of 3, 8:
echo "The number is 3 or 8"
else:
discard