tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
parent
ac9c1cd6b9
commit
e80465dacf
372 changed files with 4486 additions and 4486 deletions
|
|
@ -7,7 +7,7 @@ type
|
|||
PObj = ref TObj not nil
|
||||
TObj = object
|
||||
x: int
|
||||
|
||||
|
||||
MyString = string not nil
|
||||
|
||||
#var x: PObj = nil
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue