mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* 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
17 lines
308 B
Nim
17 lines
308 B
Nim
discard """
|
|
action: reject
|
|
nimout: '''treject.nim(14, 13) Error: 'iD' should be: 'id' [field declared in treject.nim(9, 5)]'''
|
|
matrix: "--styleCheck:error --styleCheck:usages"
|
|
"""
|
|
|
|
type
|
|
Name = object
|
|
id: int
|
|
|
|
template hello =
|
|
var iD = "string"
|
|
var name: Name
|
|
echo name.iD
|
|
echo iD
|
|
|
|
hello() |