feature: the compiler can warn when you use the implicit 'result' variable (#17988) [backport:1.2]
* implements #17855
This commit is contained in:
parent
a9ae5fe5be
commit
378ee7f888
3 changed files with 7 additions and 2 deletions
|
|
@ -402,7 +402,7 @@ proc hasHint*(conf: ConfigRef, note: TNoteKind): bool =
|
|||
note in conf.mainPackageNotes
|
||||
else: note in conf.notes
|
||||
|
||||
proc hasWarn*(conf: ConfigRef, note: TNoteKind): bool =
|
||||
proc hasWarn*(conf: ConfigRef, note: TNoteKind): bool {.inline.} =
|
||||
optWarns in conf.options and note in conf.notes
|
||||
|
||||
proc hcrOn*(conf: ConfigRef): bool = return optHotCodeReloading in conf.globalOptions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue