diff options
Diffstat (limited to 'tests/compile/tgenericprop.nim')
-rw-r--r-- | tests/compile/tgenericprop.nim | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/compile/tgenericprop.nim b/tests/compile/tgenericprop.nim deleted file mode 100644 index 7cddf5617..000000000 --- a/tests/compile/tgenericprop.nim +++ /dev/null @@ -1,12 +0,0 @@ - -type - TProperty[T] = object of TObject - getProc: proc(property: TProperty[T]): T {.nimcall.} - setProc: proc(property: TProperty[T], value: T) {.nimcall.} - value: T - -proc newProperty[T](value: TObject): TProperty[T] = - result.getProc = proc (property: TProperty[T]) = - return property.value - - |