summary refs log blame commit diff stats
path: root/tests/accept/run/tsidee2.nim
blob: e73c896080269a18c1f87d1d6a625280343d793b (plain) (tree)
1
2
3
4



                     










                                                       

 
discard """
  file: "tsidee2.nim"
  output: "5"
"""

var
  global: int

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

proc SideEffectLyer(x, y: int): int {.noSideEffect.} = 
  return x + y + dontcare(x)
  
echo SideEffectLyer(1, 3) #OUT 5