diff options
author | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2020-01-17 01:34:32 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-17 10:34:31 +0100 |
commit | 796aafe7e0856375494a352f738ac14f8de9fd4d (patch) | |
tree | 9d2036631f60bd27d7d01296a7b0494e9a7a792e /compiler/pragmas.nim | |
parent | 2bf337abaefe862bc7e05cc0c907a3095b1f429c (diff) | |
download | Nim-796aafe7e0856375494a352f738ac14f8de9fd4d.tar.gz |
make case-object transitions explicit, make unknownLineInfo a const, replace a few magic numbers with consts (#13170)
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 0004fe94b..ab0af80ea 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -736,7 +736,7 @@ proc semCustomPragma(c: PContext, n: PNode): PNode = result = result[0] elif n.kind == nkExprColonExpr and r.len == 2: # pragma(arg) -> pragma: arg - result.kind = n.kind + result.transitionSonsKind(n.kind) proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int, validPragmas: TSpecialWords, |