version 0.8.2
This commit is contained in:
parent
581572b28c
commit
053309e60a
125 changed files with 6564 additions and 1308 deletions
11
tests/tsidee1.nim
Executable file
11
tests/tsidee1.nim
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
var
|
||||
global: int
|
||||
|
||||
proc dontcare(x: int): int = return x + global
|
||||
|
||||
proc SideEffectLyer(x, y: int): int {.noSideEffect.} = #ERROR_MSG 'SideEffectLyer' can have side effects
|
||||
return x + y + dontcare(x)
|
||||
|
||||
echo SideEffectLyer(1, 3)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue