summary refs log blame commit diff stats
path: root/tests/stylecheck/treject.nim
blob: b9d97a58d60e1b263271554422b5f0d2c0107217 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                     
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()