diff --git a/serialization/object_serialization.nim b/serialization/object_serialization.nim index 828cf4a..81de903 100644 --- a/serialization/object_serialization.nim +++ b/serialization/object_serialization.nim @@ -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) diff --git a/tests/test_object_serialization.nim b/tests/test_object_serialization.nim index 49bd6eb..1ca35cd 100644 --- a/tests/test_object_serialization.nim +++ b/tests/test_object_serialization.nim @@ -1,6 +1,6 @@ import typetraits, unittest, - stew/shims/macros, + stew/shims/macros, stew/objects, ../serialization/object_serialization, ../serialization/testing/generic_suite