summary refs log blame commit diff stats
path: root/tests/stylecheck/taccept.nim
blob: 43a9ab71f3c6b6c48144d272c25c21272cd4dab4 (plain) (tree)
1
2
3
4
5



                                                  
                               











                         




                              
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]