symbol conflict workaround
works around https://github.com/nim-lang/Nim/pull/23124
This commit is contained in:
parent
c24cedb662
commit
4d541ec434
|
@ -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?
|
# TODO Nim cannot make sense of this initialization by var param?
|
||||||
proc readValue*(reader: var auto, T: type): T {.gcsafe, raises: [SerializationError, IOError].} =
|
proc readValue*(reader: var auto, T: type): T {.gcsafe, raises: [SerializationError, IOError].} =
|
||||||
{.warning[ProveInit]: off.}
|
{.warning[ProveInit]: false.}
|
||||||
mixin readValue
|
mixin readValue
|
||||||
result = default(T)
|
result = default(T)
|
||||||
reader.readValue(result)
|
reader.readValue(result)
|
||||||
{.warning[ProveInit]: on.}
|
{.warning[ProveInit]: true.}
|
||||||
|
|
||||||
template decode*(Format: distinct type,
|
template decode*(Format: distinct type,
|
||||||
input: string,
|
input: string,
|
||||||
|
|
Loading…
Reference in New Issue