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 ..