bugfix: type alias to generic; generic type not stripped away from for loop variable

This commit is contained in:
Araq 2012-01-07 20:03:41 +01:00
commit 7405278138
8 changed files with 118 additions and 69 deletions

View file

@ -0,0 +1,12 @@
type
TProperty[T] = object of TObject
getProc: proc(property: TProperty[T]): T
setProc: proc(property: TProperty[T], value: T)
value: T
proc newProperty[T](value: TObject): TProperty[T] =
result.getProc = proc (property: TProperty[T]) =
return property.value