From d3ce5f34f8e763884009b6dd3d4609d4a8071ff8 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 5 Mar 2016 14:36:40 +0100 Subject: [PATCH] fixes #3767 --- lib/system.nim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index 904791a46f..b2525c336c 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3541,16 +3541,22 @@ proc `^`*(x: int): int {.noSideEffect, magic: "Roof".} = ## overloaded ``[]`` or ``[]=`` accessors. discard -template `..^`*(a, b: expr): expr = +template `..^`*(a, b: untyped): untyped = ## a shortcut for '.. ^' to avoid the common gotcha that a space between ## '..' and '^' is required. a .. ^b -template `..<`*(a, b: expr): expr = +template `..<`*(a, b: untyped): untyped {.dirty.} = ## a shortcut for '.. <' to avoid the common gotcha that a space between ## '..' and '<' is required. a ..