diff options
author | Araq <rumpf_a@web.de> | 2013-02-24 12:34:50 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-02-24 12:34:50 +0100 |
commit | c87e1c96ad1c22c3d051bbf7254e7a92360116b6 (patch) | |
tree | cbab4357fab8e1b90a26dcb1db04ead245053312 /lib/system.nim | |
parent | 6cbd5bb017337801ac7985e8a95834a6cc6ef73a (diff) | |
download | Nim-c87e1c96ad1c22c3d051bbf7254e7a92360116b6.tar.gz |
some bugfixes; no system.$ for object as it breaks code
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-x | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index db78d2740..5f9a24ba9 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -1532,7 +1532,7 @@ iterator fieldPairs*[S: tuple|object, T: tuple|object](x: S, y: T): tuple[ ## The current implementation also has a bug that affects symbol binding ## in the loop body. -proc `==`*[T: tuple|object](x, y: T): bool = +proc `==`*[T: tuple](x, y: T): bool = ## generic ``==`` operator for tuples that is lifted from the components ## of `x` and `y`. for a, b in fields(x, y): @@ -1557,7 +1557,7 @@ proc `<`*[T: tuple](x, y: T): bool = if c > 0: return false return false -proc `$`*[T: tuple|object](x: T): string = +proc `$`*[T: tuple](x: T): string = ## generic ``$`` operator for tuples that is lifted from the components ## of `x`. Example: ## |