tsidee2.nim 207 B

1234567891011121314
  1. discard """
  2. output: "5"
  3. """
  4. var
  5. global: int
  6. proc dontcare(x: int): int = return x
  7. proc SideEffectLyer(x, y: int): int {.noSideEffect.} =
  8. return x + y + dontcare(x)
  9. echo SideEffectLyer(1, 3) #OUT 5