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
This commit is contained in:
flywind 2022-01-10 17:29:04 +08:00 • committed by GitHub
commit 92e5573b20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,17 @@
discard """
matrix: "--styleCheck:error --styleCheck:usages"
"""
import asyncdispatch
type
Name = object
id: int
template hello =
var iD = "string"
var name: Name
doAssert name.id == 0
doAssert iD == "string"
hello()