Type mismatch got int literal instead of bool on newest devel
Vindaar opened this issue · comments
Vindaar commented
On the current devel due to commit nim-lang/Nim@361a2d8 the condition in a when
statement is now required to be bool. But due to a macro bug (nim-lang/Nim#7375) compile time bool
are often converted to static[int]
.
This causes compilation of zero-functional to fail with:
~/src/nim/zero-functional/zero_functional.nim(681, 24) Error: type mismatch: got <int literal(0)> but expected 'bool'