Handle updates in nim-stew
This commit is contained in:
parent
e0e51015b7
commit
5b11c41731
|
@ -150,7 +150,7 @@ template enumAllSerializedFields*(T: type, body): untyped =
|
||||||
enumAllSerializedFieldsImpl(T, body)
|
enumAllSerializedFieldsImpl(T, body)
|
||||||
|
|
||||||
func isCaseObject*(T: type): bool {.compileTime.} =
|
func isCaseObject*(T: type): bool {.compileTime.} =
|
||||||
genExpr:
|
genSimpleExpr:
|
||||||
enumAllSerializedFields(T):
|
enumAllSerializedFields(T):
|
||||||
if fieldCaseDiscriminator != "":
|
if fieldCaseDiscriminator != "":
|
||||||
return newLit(true)
|
return newLit(true)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
typetraits, unittest,
|
typetraits, unittest,
|
||||||
stew/shims/macros,
|
stew/shims/macros, stew/objects,
|
||||||
../serialization/object_serialization,
|
../serialization/object_serialization,
|
||||||
../serialization/testing/generic_suite
|
../serialization/testing/generic_suite
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue