juancarlospaco/nim-contra

Using assercho fails compilation

Udiknedormin opened this issue · 1 comments

For Nim 1.2.0 and file "assertecho_test.nim":

import contra

let foo = 42
let bar = 9
assercho(foo > bar, "Assercho for all the Brochachos!")

Compilation aborts with:

$ nim c -r assertecho_test.nim
(...)/assertecho_test.nim(5, 9) template/generic instantiation of `assercho` from here
(...)/nim-1.2.0/lib/core/macros.nim(565, 1) Error: undeclared identifier: 'internalAssercho'

I run it on Linux, Nim's default C compiler is gcc.

Same error in nim 1.4, Debian and gcc as well.