You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proc value(..., val: BiggestInt) passes wrong type of argument to add.
The function is defined like this:
proc value(this: var DebugPrinter; value: BiggestInt) =
if this.useColor:
this.res.add numberStyle
this.res.add value
if this.useColor:
this.res.add resetStyle
The error message looks as follows:
/Users/rieckenj/.nimble/pkgs/compiler-#fix-renderer/compiler/astalgo.nim(428, 11) Error: type mismatch: got <string, BiggestInt>
but expected one of:
proc add(x: var string; y: char)
first type mismatch at position: 2
required type for y: char
but expression 'value' is of type: BiggestInt
proc add(x: var string; y: cstring)
first type mismatch at position: 2
required type for y: cstring
but expression 'value' is of type: BiggestInt
proc add(x: var string; y: string)
first type mismatch at position: 2
required type for y: string
but expression 'value' is of type: BiggestInt
$ nim -v
Nim Compiler Version 1.6.2 [MacOSX: amd64]
Compiled at 2021-12-17
Copyright (c) 2006-2021 by Andreas Rumpf
active boot switches: -d:release -d:nimUseLinenoise
The text was updated successfully, but these errors were encountered:
Proc
value(..., val: BiggestInt)
passes wrong type of argument toadd
.The function is defined like this:
The error message looks as follows:
The text was updated successfully, but these errors were encountered: