mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
make tests green again
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user