mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 02:33:58 +00:00
tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
import mnamspc2
|
||||
|
||||
import mnamspc2
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# export an identifier:
|
||||
var
|
||||
global*: int
|
||||
# export an identifier:
|
||||
var
|
||||
global*: int
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
type
|
||||
TLexer* {.final.} = object
|
||||
line*: int
|
||||
filename*: string
|
||||
buffer: cstring
|
||||
type
|
||||
TLexer* {.final.} = object
|
||||
line*: int
|
||||
filename*: string
|
||||
buffer: cstring
|
||||
|
||||
proc noProcVar*(): int = 18
|
||||
|
||||
@@ -1 +1 @@
|
||||
import trecmod
|
||||
import trecmod
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Module B
|
||||
import trecmod2
|
||||
import trecmod2
|
||||
|
||||
proc p*(x: trecmod2.T1): trecmod2.T1 =
|
||||
# this works because the compiler has already
|
||||
# added T1 to trecmod2's interface symbol table
|
||||
return x + 1
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import mexporta
|
||||
# bug #1029:
|
||||
from rawsockets import accept
|
||||
|
||||
# B.TMyObject has been imported implicitly here:
|
||||
# B.TMyObject has been imported implicitly here:
|
||||
var x: TMyObject
|
||||
echo($x, q(0), q"0")
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ discard """
|
||||
line: 10
|
||||
errormsg: "undeclared identifier: \'global\'"
|
||||
"""
|
||||
# Test17 - test correct handling of namespaces
|
||||
|
||||
import mnamspc1
|
||||
|
||||
global = 9 #ERROR
|
||||
# Test17 - test correct handling of namespaces
|
||||
|
||||
import mnamspc1
|
||||
|
||||
global = 9 #ERROR
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# recursive module
|
||||
import mrecmod
|
||||
# recursive module
|
||||
import mrecmod
|
||||
|
||||
Reference in New Issue
Block a user