mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 07:43:26 +00:00
Added test for #1923.
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user