Closed pietroppeter closed 1 year ago
the reported error is indeed fixed by annotation all ==
with noSideEffects
, a new error pops out:
C:\Users\ppeterlongo\Documents\toml_serialization\toml_serialization.nim(112, 15) template/generic instantiation of `readValue` from here
C:\Users\ppeterlongo\.nimble\pkgs\serialization-0.1.0\serialization.nim(29, 9) template/generic instantiation of `readValue` from here
C:\Users\ppeterlongo\Documents\toml_serialization\toml_serialization\reader.nim(416, 29) template/generic instantiation from here
C:\Users\ppeterlongo\Documents\toml_serialization\toml_serialization\reader.nim(430, 15) Error: parseValue(r.lex, value) can raise an unlisted exception: Exception
compiling the first readme example with current devel throws an error.
example file:
error reported:
see also https://github.com/nim-lang/Nim/pull/20697
it seems adding a noSideEffects annotation to
==
should fix this. I will check if that is indeed the case and come back with a PR.