summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-08-29 07:49:58 +0200
committerGitHub <noreply@github.com>2019-08-29 07:49:58 +0200
commit9203d3a982446990467f4ddcfdc33d2cc5d91882 (patch)
tree79546400e461068eff54aec54322a02b09dd962d /lib/system
parentcd106cf68071a3249d32d4ffc2948cd5fe6c1795 (diff)
downloadNim-9203d3a982446990467f4ddcfdc33d2cc5d91882.tar.gz
fixes 5870 (#11704)
* fixes #5870
* make tclosure test green again
* this check is correct but breaks some Nimble packages
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/iterators.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/iterators.nim b/lib/system/iterators.nim
index dafd56cb3..117ec123d 100644
--- a/lib/system/iterators.nim
+++ b/lib/system/iterators.nim
@@ -224,7 +224,7 @@ iterator fields*[T: tuple|object](x: T): RootObj {.
   ## **Warning**: This really transforms the 'for' and unrolls the loop.
   ## The current implementation also has a bug
   ## that affects symbol binding in the loop body.
-iterator fields*[S:tuple|object, T:tuple|object](x: S, y: T): tuple[a,b: untyped] {.
+iterator fields*[S:tuple|object, T:tuple|object](x: S, y: T): tuple[a, b: RootObj] {.
   magic: "Fields", noSideEffect.}
   ## Iterates over every field of `x` and `y`.
   ##
@@ -266,7 +266,7 @@ iterator fieldPairs*[T: tuple|object](x: T): RootObj {.
   ## loop body.
 
 iterator fieldPairs*[S: tuple|object, T: tuple|object](x: S, y: T): tuple[
-  a, b: untyped] {.
+  a, b: RootObj] {.
   magic: "FieldPairs", noSideEffect.}
   ## Iterates over every field of `x` and `y`.
   ##
'#n168'>168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259