new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
|
|
@ -1,17 +0,0 @@
|
|||
discard """
|
||||
file: "tsidee4.nim"
|
||||
line: 15
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
var
|
||||
global: int
|
||||
|
||||
proc dontcare(x: int): int = return x
|
||||
|
||||
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
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue