Fixed undeclared nimIdentNormalize compilation error in parseEnum (#15343)
This commit is contained in:
parent
8b66412a8b
commit
28a64869f0
1 changed files with 1 additions and 2 deletions
|
|
@ -1294,8 +1294,7 @@ macro genEnumStmt(typ: typedesc, argSym: typed, default: typed): untyped =
|
||||||
let typ = typ.getTypeInst[1]
|
let typ = typ.getTypeInst[1]
|
||||||
let impl = typ.getImpl[2]
|
let impl = typ.getImpl[2]
|
||||||
expectKind impl, nnkEnumTy
|
expectKind impl, nnkEnumTy
|
||||||
result = nnkCaseStmt.newTree(nnkDotExpr.newTree(argSym,
|
result = nnkCaseStmt.newTree(newCall(bindSym"nimIdentNormalize", argSym))
|
||||||
bindSym"nimIdentNormalize"))
|
|
||||||
# stores all processed field strings to give error msg for ambiguous enums
|
# stores all processed field strings to give error msg for ambiguous enums
|
||||||
var foundFields: seq[string] = @[]
|
var foundFields: seq[string] = @[]
|
||||||
var fStr = "" # string of current field
|
var fStr = "" # string of current field
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue