start of tests refactoring; sqlite3 new wrapper fixes
This commit is contained in:
parent
6bc16904ed
commit
d913fdb280
173 changed files with 206 additions and 238 deletions
11
tests/reject/tsidee1.nim
Normal file
11
tests/reject/tsidee1.nim
Normal 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