I had something similar to you example in nim-screeps at first: `proc quz(x: 
float, what: typedesc): what = 1`. @araq said that this should not work. I 
think thats the same as the `T` in your example (an ordinary identifier). I 
rewrote it to `proc quz[T](x: float, T: typedesc): T = 1` which is how it 
should be. The other form is something araq wants to eliminate from the 
compiler eventually.

Reply via email to