summary refs log tree commit diff stats
path: root/tests/misc/tparsecombnum.nim
Commit message (Expand)AuthorAgeFilesLines
* add parser combinator test; uses multiple tuples/generics featuresMax Zerzouri2015-03-071-0/+55
6 7 8 9








                                            
the previous revision' href='/ahoang/Nim/blame/tests/reject/tinvalidclosure.nim?h=devel&id=adb73ec9ed87a5c5fe1ced35f3440b85bac49d8a'>^
813f98fb3 ^
f191059e5 ^

813f98fb3 ^
f191059e5 ^
991b3096e ^

76c3b314d ^
991b3096e ^

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

   
                               
             

 
                                                    

                   
discard """
  line: 12
  errormsg: "type mismatch: got (proc (x: int){.gcsafe, locks: 0.})"
"""

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


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

takeCDecl(ugh[int])