Hey All,

I'm using the strenc library and when I compile using the following code below 
I get an AssertionDefect error. When I change the code below to something 
simpler it works with no issues. Would really appreciate it if anyone has a fix 
for this.

for kind, key, val in getopt():
    case kind

of cmdArgument:
    filename = key
of cmdLongOption, cmdShortOption:
    case key

of "help", "h":
    Help() quit()

of "a", "a": a = true of "b", "b": b = true of "c", "c": c = true of "d", "d": 
d = true of "e", "e": e = true of "f", "f": f = true of "g", "g": g = val of 
"h", "h": h = val

of cmdEnd: assert(false)

if inFile == "":
    Help()

Error:

fatal.nim(53) sysFatal Error: unhandled exception: ccgstmts.nim(838, 11) 
`b[i].kind in {nkStrLit .. nkTripleStrLit}` [AssertionDefect]

Reply via email to