added an .assert pragma and mentioned the pragmas in the changelog

This commit is contained in:
Araq 2020-04-02 12:57:15 +02:00
commit d01fca974d
4 changed files with 8 additions and 4 deletions

View file

@ -1176,7 +1176,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
if sym == nil: invalidPragma(c, it)
else: sym.flags.incl sfUsed
of wLiftLocals: discard
of wRequires, wInvariant, wAssume:
of wRequires, wInvariant, wAssume, wAssert:
pragmaProposition(c, it)
of wEnsures:
pragmaEnsures(c, it)