Closed narimiran closed 3 years ago
This is what I meant when I said cruft. At least make a new type with a when statement, or something like when (NimMajor, NimMinor) < (1, 4): type AssertionDefect = AssertionException
Changed.
You should also change this if you want it to be reverse compatible: https://github.com/PMunch/protobuf-nim/blob/master/src/protobuf.nim#L269
It seems there's no need for that: Defect
is defined even in Nim 1.0.
This is what I meant when I said cruft. At least make a new type with a when statement, or something like
when (NimMajor, NimMinor) < (1, 4): type AssertionDefect = AssertionException
You should also change this if you want it to be reverse compatible: https://github.com/PMunch/protobuf-nim/blob/master/src/protobuf.nim#L269