diff --git a/compiler/semfold.nim b/compiler/semfold.nim index 627877cbeb..e977a242ba 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -379,7 +379,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode; g: ModuleGraph): PNode = result = newStrNodeT(s, n, g) else: result = newStrNodeT(getStrOrChar(a), n, g) - of mStrToStr: result = a + of mStrToStr: result = newStrNodeT(getStrOrChar(a), n, g) of mEnumToStr: result = newStrNodeT(ordinalValToString(a, g), n, g) of mArrToSeq: result = copyTree(a)