This commit is contained in:
parent
268a1f7cfd
commit
0d8a503e45
2 changed files with 16 additions and 3 deletions
|
|
@ -14,3 +14,16 @@ proc arrayItem(a: ArrayType): auto =
|
|||
var arr: ArrayType[int]
|
||||
echo arrayItem(arr)
|
||||
|
||||
# bug #5597
|
||||
|
||||
template fail() = "what"
|
||||
|
||||
proc g[T](x: var T) =
|
||||
x.fail = 3
|
||||
|
||||
type
|
||||
Obj = object
|
||||
fail: int
|
||||
|
||||
var y: Obj
|
||||
g y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue