mirror of
https://github.com/status-im/nim-confutils.git
synced 2025-02-12 12:06:28 +00:00
Tenative fix for yet another yearly binding problem
This commit is contained in:
parent
b42717a73a
commit
4e487bedf1
@ -590,7 +590,7 @@ macro generateFieldSetters(RecordType: type): untyped =
|
||||
when `configField` is enum:
|
||||
# TODO: For some reason, the normal `setField` rejects enum fields
|
||||
# when they are used as case discriminators. File this as a bug.
|
||||
if val.isSome:
|
||||
if isSome(val):
|
||||
`configField` = parseEnum[type(`configField`)](string(val.get))
|
||||
else:
|
||||
`configField` = `defaultValue`
|
||||
|
Loading…
x
Reference in New Issue
Block a user