Skip to content

Commit

Permalink
Add testcase for nim-lang#11811
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Jun 19, 2020
1 parent 45bc695 commit 3d3e617
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/bind/tbind.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ output: '''
1
1
1
5
'''
"""

Expand Down Expand Up @@ -65,3 +66,13 @@ block tmixin:

Foo(a)
Foo(b)

# issue #11811
proc p(a : int) =
echo a

proc printVar*[T:int|float|string](a : T) =
bind p
p(a)

printVar(5)

0 comments on commit 3d3e617

Please sign in to comment.