summary refs log tree commit diff stats
path: root/compiler/ropes.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ropes.nim')
-rw-r--r--compiler/ropes.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim
index 707c29123..ce81aae37 100644
--- a/compiler/ropes.nim
+++ b/compiler/ropes.nim
@@ -283,11 +283,10 @@ proc ropef(frmt: TFormatStr, args: varargs[PRope]): PRope =
   assert(RopeInvariant(result))
 
 {.push stack_trace: off, line_trace: off.}
-proc `~`*(r: expr[string]): PRope =
+proc `~`*(r: string): PRope =
   # this is the new optimized "to rope" operator
   # the mnemonic is that `~` looks a bit like a rope :)
-  var r {.global.} = r.ropef
-  return r
+  return r.ropef
 {.pop.}
 
 proc appf(c: var PRope, frmt: TFormatStr, args: varargs[PRope]) =