tests: Trim .nim files trailing whitespace

via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
Adam Strzelecki 2015-09-04 23:04:32 +02:00
commit e80465dacf
372 changed files with 4486 additions and 4486 deletions

View file

@ -7,7 +7,7 @@ type
PObj = ref TObj not nil
TObj = object
x: int
MyString = string not nil
#var x: PObj = nil

View file

@ -18,7 +18,7 @@ proc q(s: superstring) =
echo s
proc p2() =
var a: string = "I am not nil"
var a: string = "I am not nil"
q(a) # but this should and does not
p2()
@ -30,7 +30,7 @@ proc p() =
var x: pointer
if not x.isNil:
q(x)
let y = x
if not y.isNil:
q(y)

View file

@ -9,14 +9,14 @@ type
x: int
ud: T
proc good[T](p: A[T]) =
proc good[T](p: A[T]) =
discard
proc bad[T](p: A[T] not nil) =
proc bad[T](p: A[T] not nil) =
discard
proc go() =
proc go() =
let s = A[int](x: 1)
good(s)