Files
Nim/tests/run/tgenericprocvar.nim
2011-11-19 15:45:51 +01:00

20 lines
293 B
Nim

discard """
output: "0false"
"""
# Test multiple generic instantiation of generic proc vars:
proc threadProcWrapper[TMsg]() =
var x: TMsg
stdout.write($x)
#var x = threadProcWrapper[int]
#x()
#var y = threadProcWrapper[bool]
#y()
threadProcWrapper[int]()
threadProcWrapper[bool]()