require errormsg to be specified before file.

This commit is contained in:
Arne Döring
2018-11-29 16:07:51 +01:00
committed by Araq
parent ca394ebd95
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View File

@@ -1,5 +1,4 @@
discard """
file: "tptrarrayderef.nim"
output: "OK"
"""
@@ -15,7 +14,7 @@ var
proc mutate[T](arr:openarray[T], brr: openArray[T]) =
for i in 0..arr.len-1:
doAssert(arr[i] == brr[i])
mutate(arr, arr)
#bug #2240
@@ -46,9 +45,9 @@ proc getFilledBuffer(sz: int): ref seq[char] =
s[] = newSeq[char](sz)
fillBuffer(s[])
return s
let aa = getFilledBuffer(3)
for i in 0..aa[].len-1:
doAssert(aa[i] == chr(i))
echo "OK"
echo "OK"