diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-04-04 18:05:53 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-04 18:05:53 +0200 |
commit | ac81a99892d03402f5d389bbd624c2bff660d9ef (patch) | |
tree | 288d392957fffda8cef8a5b8c46b5b52c2b838b8 | |
parent | bfaa32968049aed6925e53def094b8135fed328a (diff) | |
download | Nim-ac81a99892d03402f5d389bbd624c2bff660d9ef.tar.gz |
make tests green again
-rw-r--r-- | compiler/sempass2.nim | 2 | ||||
-rw-r--r-- | web/news/e031_version_0_16_2.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 542120bdf..2133d9bef 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -806,7 +806,7 @@ proc track(tracked: PEffects, n: PNode) = track(tracked, n.sons[i]) setLen(tracked.init, oldState) of nkObjConstr: - track(tracked, n.sons[0]) + when false: track(tracked, n.sons[0]) let oldFacts = tracked.guards.len for i in 1 .. <len(n): let x = n.sons[i] diff --git a/web/news/e031_version_0_16_2.rst b/web/news/e031_version_0_16_2.rst index bee4b78df..a15e715d6 100644 --- a/web/news/e031_version_0_16_2.rst +++ b/web/news/e031_version_0_16_2.rst @@ -99,7 +99,7 @@ remove the need for the ``newException`` template. the "declared but not used" warning. More details can be found `here <http://nim-lang.org/docs/manual.html#pragmas-used-pragma>`_. - The popular "colon block of statements" syntax is now also supported for - ``let`` and ``var`` statements: + ``let`` and ``var`` statements and assignments: .. code-block:: nim template ve(value, effect): untyped = |