summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-29 16:54:50 +0200
committerAraq <rumpf_a@web.de>2018-09-29 16:54:59 +0200
commit40e01d8549ce3c278dbe791d7af4f1e73b4d56da (patch)
treef0b2c4b7beae7270f752bf1f35dd9059ac668494 /compiler/pragmas.nim
parent2dfd09b1bef5c7d7dcba02b8c80856bce7aa685e (diff)
downloadNim-40e01d8549ce3c278dbe791d7af4f1e73b4d56da.tar.gz
don't require an implementation for procs marked with .error; activate the move optimizer for destructors
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index 9a624fcce..94790440f 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -961,6 +961,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
           # ``proc p() {.error}`` and ``proc p() = {.error: "msg".}``
           if it.kind in nkPragmaCallKinds: discard getStrLitNode(c, it)
           incl(sym.flags, sfError)
+          excl(sym.flags, sfForward)
         else:
           let s = expectStrLit(c, it)
           recordPragma(c, it, "error", s)