mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
23 lines
319 B
Nim
23 lines
319 B
Nim
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]
|