Files
Nim/tests/threads/t8535.nim
2018-12-11 21:23:22 +01:00

17 lines
258 B
Nim

discard """
output: "0"
"""
type
CircAlloc* [Size: static[int] , T] = tuple
baseArray : array[Size,T]
index : uint16
type
Job = object of RootObj
var foo {.threadvar.}: CircAlloc[1,Job]
when true:
echo foo.index