Skip to content

Commit

Permalink
symbol conflict workaround
Browse files Browse the repository at this point in the history
works around nim-lang/Nim#23124
  • Loading branch information
arnetheduck committed Jan 2, 2024
1 parent c24cedb commit 4d541ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4d541ec

Please sign in to comment.