summary refs log tree commit diff stats
path: root/tests/overload
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-09-04 23:04:32 +0200
committerAdam Strzelecki <ono@java.pl>2015-09-04 23:04:32 +0200
commite80465dacf50f260abec30ae57d37b298c93fd83 (patch)
tree393394f8353a4adb49f95e6f13da1fd41681b7b3 /tests/overload
parentac9c1cd6b980d4f00eeb52d1109d8e2c8cd21213 (diff)
downloadNim-e80465dacf50f260abec30ae57d37b298c93fd83.tar.gz
tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
Diffstat (limited to 'tests/overload')
-rw-r--r--tests/overload/toverl2.nim6
-rw-r--r--tests/overload/toverl3.nim6
-rw-r--r--tests/overload/toverl4.nim2
-rw-r--r--tests/overload/toverwr.nim26
4 files changed, 20 insertions, 20 deletions
diff --git a/tests/overload/toverl2.nim b/tests/overload/toverl2.nim
index ea0249e9f..54714ac1b 100644
--- a/tests/overload/toverl2.nim
+++ b/tests/overload/toverl2.nim
@@ -9,9 +9,9 @@ import strutils
 proc toverl2(x: int): string = return $x
 proc toverl2(x: bool): string = return $x
 
-iterator toverl2(x: int): int = 
+iterator toverl2(x: int): int =
   var res = 0
-  while res < x: 
+  while res < x:
     yield res
     inc(res)
 
@@ -20,7 +20,7 @@ var
 
 stdout.write(pp(true))
 
-for x in toverl2(3): 
+for x in toverl2(3):
   stdout.write(toverl2(x))
 
 block:
diff --git a/tests/overload/toverl3.nim b/tests/overload/toverl3.nim
index b3e0f2fa7..92cfc150d 100644
--- a/tests/overload/toverl3.nim
+++ b/tests/overload/toverl3.nim
@@ -4,8 +4,8 @@ discard """
 tup1'''
 """
 
-# Tests more specific generic match:

-

+# Tests more specific generic match:
+
 proc m[T](x: T) = echo "m2"
 proc m[T](x: var ref T) = echo "m1"
 
@@ -15,6 +15,6 @@ proc tup[S, T](x: tuple[a: S, b: T]) = echo "tup2"
 var
   obj: ref int
   tu: tuple[a: int, b: ref bool]
-  
+
 m(obj)
 tup(tu)
diff --git a/tests/overload/toverl4.nim b/tests/overload/toverl4.nim
index 6bb3a53d1..b63265bdf 100644
--- a/tests/overload/toverl4.nim
+++ b/tests/overload/toverl4.nim
@@ -74,4 +74,4 @@ proc add*[TKey, TData](root: var PElement[TKey, TData], key: TKey, data: TData)
 
 var tree = PElement[int, int](kind: ElementKind.inner, key: 0, left: nil, right: nil)
 let result = add(tree, 1, 1)
-echo(result)
\ No newline at end of file
+echo(result)
diff --git a/tests/overload/toverwr.nim b/tests/overload/toverwr.nim
index 32d50faaa..5945a6149 100644
--- a/tests/overload/toverwr.nim
+++ b/tests/overload/toverwr.nim
@@ -1,13 +1,13 @@
-discard """

-  file: "toverwr.nim"

-  output: "hello"

-"""

-# Test the overloading resolution in connection with a qualifier

-

-proc write(t: TFile, s: string) =

-  discard # a nop

-

-system.write(stdout, "hello")

-#OUT hello

-

-

+discard """
+  file: "toverwr.nim"
+  output: "hello"
+"""
+# Test the overloading resolution in connection with a qualifier
+
+proc write(t: TFile, s: string) =
+  discard # a nop
+
+system.write(stdout, "hello")
+#OUT hello
+
+
rnings' href='/ahoang/Nim/commit/compiler/ccgtrav.nim?h=devel&id=39049e151f8d88f34baa74373ef92233005f3af2'>39049e151 ^
03ba0f3e2 ^





39049e151 ^
e7cdb1d69 ^
39049e151 ^

03ba0f3e2 ^

e7cdb1d69 ^

7d6500f1d ^

39049e151 ^
03ba0f3e2 ^

39049e151 ^
e65c296bc ^
39049e151 ^
03ba0f3e2 ^


39049e151 ^
03ba0f3e2 ^
eea2a6360 ^
03ba0f3e2 ^

34143ee12 ^
03ba0f3e2 ^
e6c5622aa ^
03ba0f3e2 ^


153441db1 ^
a42545ea3 ^
39049e151 ^
153441db1 ^
a42545ea3 ^
153441db1 ^




03ba0f3e2 ^

3a13706d7 ^


e7cdb1d69 ^
03ba0f3e2 ^
92b8fac94 ^
7d6500f1d ^
39049e151 ^
03ba0f3e2 ^
df1ec0939 ^
56b4e3ad9 ^

46b672a6c ^
56b4e3ad9 ^
73c6efdf6 ^
03ba0f3e2 ^
39049e151 ^
03ba0f3e2 ^
39049e151 ^
03ba0f3e2 ^

153441db1 ^
df1ec0939 ^
39049e151 ^
153441db1 ^
39049e151 ^
153441db1 ^




39049e151 ^
b234b082b ^

03ba0f3e2 ^

b234b082b ^
f7f3a25be ^

39049e151 ^
03ba0f3e2 ^


39049e151 ^
b234b082b ^
39049e151 ^
03ba0f3e2 ^
39049e151 ^


03ba0f3e2 ^
438703f59 ^
03ba0f3e2 ^
39049e151 ^
03ba0f3e2 ^
b234b082b ^
5c33f7651 ^
39049e151 ^
5c33f7651 ^
39049e151 ^








ab6f79340 ^
39049e151 ^
ab6f79340 ^

6ddd4e6a3 ^
4b0ba5e3f ^
39049e151 ^
6ddd4e6a3 ^

fab69661a ^
39049e151 ^
ab6f79340 ^

b234b082b ^
6ddd4e6a3 ^
39049e151 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175