fixes #10963, disallow implicit mixing of strings and ints/floats (#11292)

This commit is contained in:
Miran 2019-05-21 21:32:37 +02:00 • committed by Andreas Rumpf
commit bab5e30972
6 changed files with 25 additions and 17 deletions

View file

@ -425,7 +425,7 @@ proc value(this: var DebugPrinter; value: string) =
proc value(this: var DebugPrinter; value: BiggestInt) =
if this.useColor:
this.res.add numberStyle
this.res.add value
this.res.addInt value
if this.useColor:
this.res.add resetStyle
@ -460,7 +460,7 @@ template earlyExit(this: var DebugPrinter; n: PType | PNode | PSym) =
if this.useColor:
this.res.add backrefStyle
this.res.add "<defined "
this.res.add(this.currentLine - index)
this.res.addInt(this.currentLine - index)
this.res.add " lines upwards>"
if this.useColor:
this.res.add resetStyle