Files
Nim/tests/stylecheck/taccept.nim
flywind 00775f6880 fix stylecheck bug with nre (#19356)
* 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

* fix stylecheck bug with nre

* Update compiler/linter.nim

* no need to check dotexpr again

* neither did let/var/const
2022-04-08 08:04:46 +02:00

18 lines
248 B
Nim

discard """
matrix: "--styleCheck:error --styleCheck:usages"
"""
import std/[asyncdispatch, nre]
type
Name = object
id: int
template hello =
var iD = "string"
var name: Name
doAssert name.id == 0
doAssert iD == "string"
hello()