diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-21 21:22:36 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-21 21:22:36 +0200 |
commit | 85ea9593b38351e69fedac61ff0c2b958bac4b7f (patch) | |
tree | b991e735138440769ae7e995172b3ab4be438d4d /tests/objects/tobjconstr.nim | |
parent | 14046d975dd0c5a5195dea7d6bdcb3daa8e69eca (diff) | |
download | Nim-85ea9593b38351e69fedac61ff0c2b958bac4b7f.tar.gz |
fixes #7637; assignments are not allowed to slice object; minor breaking change
Diffstat (limited to 'tests/objects/tobjconstr.nim')
-rw-r--r-- | tests/objects/tobjconstr.nim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/objects/tobjconstr.nim b/tests/objects/tobjconstr.nim index d1f3c8bdb..7238d10c7 100644 --- a/tests/objects/tobjconstr.nim +++ b/tests/objects/tobjconstr.nim @@ -9,8 +9,8 @@ discard """ (k: kindA, a: (x: "abc", z: [1, 8, 3]), method: ()) (k: kindA, a: (x: "abc", z: [1, 9, 3]), method: ()) (k: kindA, a: (x: "abc", z: [1, 10, 3]), method: ()) -(x: 123) -(x: 123) +(y: 0, x: 123) +(y: 678, x: 123) (z: 89, y: 0, x: 128) (y: 678, x: 123) (y: 678, x: 123) @@ -33,7 +33,6 @@ type `method`: TEmpty # bug #1791 proc `$`[T](s: seq[T]): string = - # XXX why is that not in the stdlib? result = "[" for i, x in s: if i > 0: result.add(", ") @@ -59,7 +58,7 @@ type # inherited fields are ignored, so no fields are set when true: var - o: A + o: B o = B(x: 123) echo o o = B(y: 678, x: 123) |