blob: 6395b1dde84f421f4cdb2832c5c0972b6b237600 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
type
T = ref object
data: string
template foo(): T =
var a15005 {.global.}: T
once:
a15005 = T(data: "hi")
a15005
proc test() =
var b15005 = foo()
doAssert b15005.data == "hi"
test()
test()
|