fixes another regression
This commit is contained in:
parent
d0709cc758
commit
6fbde1f4fb
2 changed files with 19 additions and 2 deletions
17
tests/generics/tspecialized_procvar.nim
Normal file
17
tests/generics/tspecialized_procvar.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
discard """
|
||||
output: '''concrete 88'''
|
||||
"""
|
||||
|
||||
# Another regression triggered by changed closure computations:
|
||||
|
||||
proc foo[T](x: proc(): T) =
|
||||
echo "generic ", x()
|
||||
|
||||
proc foo(x: proc(): int) =
|
||||
echo "concrete ", x()
|
||||
|
||||
# note the following 'proc' is not .closure!
|
||||
foo(proc (): auto {.nimcall.} = 88)
|
||||
|
||||
# bug #3499 last snippet fixed
|
||||
# bug 705 last snippet fixed
|
||||
Loading…
Add table
Add a link
Reference in a new issue