summary refs log blame commit diff stats
path: root/tests/generics/tspecialized_procvar.nim
blob: 4bdc94a66e80a1704b4f78faa5d4c4afd61fdcc1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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