mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
20 lines
293 B
Nim
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]()
|
|
|