Fix for Nim 1.4.x

This commit is contained in:
Mark Spanbroek 2022-02-02 17:05:59 +01:00 committed by markspanbroek
parent 3e507af8cc
commit 08becf42bf
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import std/macros
macro fieldValues*(obj: object): tuple =
macro fieldValues*(obj: object): auto =
result = newNimNode(nnkTupleConstr)
let typ = getTypeImpl(obj)
let fields = typ[2]