diff options
author | flywind <xzsflywind@gmail.com> | 2022-01-10 17:29:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 10:29:04 +0100 |
commit | 92e5573b20f30f4114a4eb1f35eddc7064bfcd71 (patch) | |
tree | f5d142e157ca57da6fa378570e089088e185b8ca /compiler | |
parent | 955040f0f1d4f9b2eab68c385fab9d4cfbef8ea5 (diff) | |
download | Nim-92e5573b20f30f4114a4eb1f35eddc7064bfcd71.tar.gz |
fix stylecheck error with asyncdispatch (#19350)
* stylecheck usages part two: stdlib cleanup typeinfo.nim: importCompilerProc => importcompilerproc nre.nim: newLineFlags => newlineFlags system.nim: JSRoot => JsRoot ref #19319 * prefer importCompilerProc * fix stylecheck error with asyncdispatch it is a partial regression since #12842 * add tests * don't use echo in tests
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtempl.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 49ce55a64..b921fda2c 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -270,7 +270,8 @@ proc semTemplSymbol(c: PContext, n: PNode, s: PSym; isField: bool): PNode = # Issue #12832 when defined(nimsuggest): suggestSym(c.graph, n.info, s, c.graph.usageSym, false) - if {optStyleHint, optStyleError} * c.config.globalOptions != {}: + # field access (dot expr) will be handled by builtinFieldAccess + if not isField and {optStyleHint, optStyleError} * c.config.globalOptions != {}: styleCheckUse(c.config, n.info, s) proc semRoutineInTemplName(c: var TemplCtx, n: PNode): PNode = |