Added test for #1923.
This commit is contained in:
parent
40ae1ad363
commit
bc65a7c76b
1 changed files with 9 additions and 0 deletions
9
tests/closure/tcodegenerr1923.nim
Normal file
9
tests/closure/tcodegenerr1923.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
type
|
||||||
|
Foo[M] = proc() : M
|
||||||
|
|
||||||
|
proc bar[M](f : Foo[M]) =
|
||||||
|
discard f()
|
||||||
|
|
||||||
|
proc baz() : int = 42
|
||||||
|
|
||||||
|
bar(baz)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue