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

# bug #12955
import os
import fileinfo
var xs: seq[fileinfo.FileInfo]