mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
18 lines
325 B
Nim
18 lines
325 B
Nim
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 --hint:Name:on"
|
|
"""
|
|
|
|
type
|
|
Name = object
|
|
id: int
|
|
|
|
template hello =
|
|
var iD = "string"
|
|
var name: Name
|
|
echo name.iD
|
|
echo iD
|
|
|
|
hello()
|