summary refs log tree commit diff stats
path: root/lib/pure/collections
ModeNameSize
-rw-r--r--LockFreeHash.nim19345log stats plain blame
-rw-r--r--critbits.nim9645log stats plain blame
-rw-r--r--intsets.nim5912log stats plain blame
-rw-r--r--lists.nim9314log stats plain blame
-rw-r--r--queues.nim2025log stats plain blame
-rw-r--r--sequtils.nim20148log stats plain blame
-rw-r--r--sets.nim27614log stats plain blame
-rw-r--r--tables.nim29893log stats plain blame
>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
           
                                                  
                     
          
   



             
                                          
 
                                                                                            
                            
 
                                                          
discard """
  errormsg: "'noSideEffect' can have side effects"
  file: "tsidee4.nim"
  line: 12
"""

var
  global: int

proc dontcare(x: int): int = return global

proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} =
  return x + y + dontcare(x)

echo noSideEffect(1, 3, dontcare) #ERROR_MSG type mismatch