summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
+0200 somewhat working closures' href='/ahoang/Nim/commit/tests/reject/tinvalidclosure.nim?h=devel&id=f191059e56ccf8accf872f4fb10986418dac45e2'>f191059e5 ^
991b3096e ^




1
2
3
4
5
6
7
8
9
10
11
12
           

                                                        



                               




                                                
discard """
  line: 12
  errormsg: "type mismatch: got (proc (int){.closure.})"
"""

proc ugh[T](x: T) {.closure.} =
  echo "ugha"


proc takeCdecl(p: proc (x: int) {.cdecl.}) = nil

takeCDecl(ugh[int])