> What am I doing wrong?

answer: nothing wrong

but initializing t to zero (0) by default fails, because zero is not in the 
range `'a'.. 'z'`

So you would need to do 
    
    
    var t: range['a'..'z'] = 'c'
    

**HOWEVER** the warning still issues when itialized. This is I assume a bug  
(which I will log as an issue)

Edit: [Issue 6474](https://github.com/nim-lang/Nim/issues/6474)

Reply via email to