reuse existing toHumanStr (#15674)
This commit is contained in:
parent
ec6a1125a0
commit
e09c259bf3
2 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ proc compileConstraints(p: PNode, result: var TPatternCode; conf: ConfigRef) =
|
|||
# check all symkinds:
|
||||
internalAssert conf, int(high(TSymKind)) < 255
|
||||
for i in TSymKind:
|
||||
if cmpIgnoreStyle(($i).substr(2), spec) == 0:
|
||||
if cmpIgnoreStyle(i.toHumanStr, spec) == 0:
|
||||
result.add(ppSymKind)
|
||||
result.add(chr(i.ord))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue