-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Akin to #17076 there is an issue with set[bool] on bsd in js.
CI error
Example
import macros
macro enmRange(enm: typed): untyped = result = newNimNode(nnkCurly).add(enm.getType[1][1..^1])
proc fullSet*(T: typedesc): auto {.inline.} =
when T is Ordinal:
{T.low..T.high}
else: # Hole filled enum
enmRange(T)
assert fullSet(bool) == {true, false}Current Output
Program fails at runtime for whatever reason.
`fullSet(bool) == {true, false}` [AssertionDefect]
timotheecour