Remove the uses of {.procvar.} pragma (#14359)
This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975
This commit is contained in:
parent
ce0552c100
commit
bf0e1c696f
13 changed files with 67 additions and 68 deletions
|
|
@ -102,7 +102,7 @@ type
|
|||
|
||||
# - Tparam_kind procs
|
||||
|
||||
proc `$`*(value: Tparam_kind): string {.procvar.} =
|
||||
proc `$`*(value: Tparam_kind): string =
|
||||
## Stringifies the type, used to generate help texts.
|
||||
case value:
|
||||
of PK_EMPTY: result = ""
|
||||
|
|
@ -137,7 +137,7 @@ proc new_parameter_specification*(consumes = PK_EMPTY,
|
|||
|
||||
# - Tparsed_parameter procs
|
||||
|
||||
proc `$`*(data: Tparsed_parameter): string {.procvar.} =
|
||||
proc `$`*(data: Tparsed_parameter): string =
|
||||
## Stringifies the value, mostly for debug purposes.
|
||||
##
|
||||
## The proc will display the value followed by non string type in brackets.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue