symbol conflict workaround

works around https://github.com/nim-lang/Nim/pull/23124
This commit is contained in:
Jacek Sieka 2024-01-02 17:05:02 +01:00
parent c24cedb662
commit 4d541ec434
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ template encode*(Format: type, value: auto, params: varargs[untyped]): auto =
# TODO Nim cannot make sense of this initialization by var param?
proc readValue*(reader: var auto, T: type): T {.gcsafe, raises: [SerializationError, IOError].} =
{.warning[ProveInit]: off.}
{.warning[ProveInit]: false.}
mixin readValue
result = default(T)
reader.readValue(result)
{.warning[ProveInit]: on.}
{.warning[ProveInit]: true.}
template decode*(Format: distinct type,
input: string,