diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/nim.cfg | 1 | ||||
-rw-r--r-- | compiler/semstmts.nim | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/compiler/nim.cfg b/compiler/nim.cfg index 5e8471f70..853a657b3 100644 --- a/compiler/nim.cfg +++ b/compiler/nim.cfg @@ -6,7 +6,6 @@ define:booting define:nimcore define:nimPreviewFloatRoundtrip define:nimPreviewSlimSystem -gc:refc #import:"$projectpath/testability" diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index faf8e3baa..1b98f5c1a 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -225,7 +225,7 @@ proc semTry(c: PContext, n: PNode; flags: TExprFlags; expectedType: PType = nil) if a.len == 2 and a[0].kind == nkBracket: # rewrite ``except [a, b, c]: body`` -> ```except a, b, c: body``` - a.sons[0..0] = a[0].sons + a.sons[0..0] = move a[0].sons if a.len == 2 and a[0].isInfixAs(): # support ``except Exception as ex: body`` |