Handle updates in nim-stew

This commit is contained in:
Zahary Karadjov 2020-07-08 00:31:20 +03:00
parent e0e51015b7
commit 5b11c41731
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ template enumAllSerializedFields*(T: type, body): untyped =
enumAllSerializedFieldsImpl(T, body)
func isCaseObject*(T: type): bool {.compileTime.} =
genExpr:
genSimpleExpr:
enumAllSerializedFields(T):
if fieldCaseDiscriminator != "":
return newLit(true)

View File

@ -1,6 +1,6 @@
import
typetraits, unittest,
stew/shims/macros,
stew/shims/macros, stew/objects,
../serialization/object_serialization,
../serialization/testing/generic_suite