some steps to improve the type mismatches with the new

generic instantiation logic
This commit is contained in:
Zahary Karadjov 2013-05-28 19:52:29 +03:00
commit 3e79e9f981
3 changed files with 27 additions and 10 deletions

View file

@ -0,0 +1,10 @@
type
TIDGen*[A: Ordinal] = object
next: A
free: seq[A]
proc newIDGen*[A]: TIDGen[A] =
newSeq result.free, 0
var x = newIDGen[int]()