summary refs log tree commit diff stats
path: root/tests/stylecheck/taccept.nim
blob: 6fb55f8352cc43aaa3baa0c535b1dba7d833a060 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()