bugfix: proper cache for generic instantiations
This commit is contained in:
parent
81a917390b
commit
569c1ce5ec
24 changed files with 459 additions and 643 deletions
19
tests/accept/run/tgenericprocvar.nim
Normal file
19
tests/accept/run/tgenericprocvar.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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]()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue