diff options
-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 = |