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
|
|
@ -11,7 +11,7 @@ type
|
|||
|
||||
PNodeFoo* = ref object of TNode
|
||||
|
||||
TSomethingElse = object
|
||||
TSomethingElse = object
|
||||
PSomethingElse = ref TSomethingElse
|
||||
|
||||
method foo(a: PNode, b: PSomethingElse) = discard
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ type
|
|||
x: int
|
||||
PlusExpr = ref object of Expression
|
||||
a, b: Expression
|
||||
|
||||
|
||||
method eval(e: Expression): int = quit "to override!"
|
||||
method eval(e: Literal): int = return e.x
|
||||
method eval(e: PlusExpr): int = return eval(e.a) + eval(e.b)
|
||||
|
|
@ -18,7 +18,7 @@ method eval(e: PlusExpr): int = return eval(e.a) + eval(e.b)
|
|||
proc newLit(x: int): Literal =
|
||||
new(result)
|
||||
result.x = x
|
||||
|
||||
|
||||
proc newPlus(a, b: Expression): PlusExpr =
|
||||
new(result)
|
||||
result.a = a
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ type
|
|||
x: int
|
||||
TParticle = object of TThing
|
||||
a, b: int
|
||||
|
||||
|
||||
method collide(a, b: TThing) {.inline.} =
|
||||
echo "collide: thing, thing"
|
||||
|
||||
|
||||
method collide(a: TThing, b: TUnit) {.inline.} =
|
||||
echo "collide: thing, unit"
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ var s:ref Test = newTest()
|
|||
for z in 1..4:
|
||||
s.doMethod()
|
||||
break
|
||||
|
||||
|
||||
#works
|
||||
#for z in 1..4:
|
||||
# s.doProc()
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ type
|
|||
x: T
|
||||
TParticle = object of TThing
|
||||
a, b: int
|
||||
|
||||
|
||||
method collide(a, b: TThing) {.inline.} =
|
||||
quit "to override!"
|
||||
|
||||
|
||||
method collide[T](a: TThing, b: TUnit[T]) {.inline.} =
|
||||
write stdout, "collide: thing, unit | "
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue