summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-09-23 16:47:24 +0200
committerGitHub <noreply@github.com>2021-09-23 16:47:24 +0200
commit90a2b5afd8368777e5da9ab97c28130ba683e1d3 (patch)
treef554491558b2ac3b3c3c0f3424c69f1e31238813 /lib/system.nim
parent7d2a4c0880223c2c80a5c30227c26fa497898f39 (diff)
downloadNim-90a2b5afd8368777e5da9ab97c28130ba683e1d3.tar.gz
correct effect tracking for .borrowed procs [backport] (#18882)
* correct effect tracking for .borrowed procs [backport]

* progress

* fix error message in a test

* correctly fix it

Co-authored-by: narimiran <narimiran@disroot.org>
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index c93af0854..a5356cb54 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2453,7 +2453,7 @@ when notJSnotNims:
     else:
       {.error: "Only closure function and iterator are allowed!".}
 
-  proc finished*[T: proc](x: T): bool {.noSideEffect, inline.} =
+  proc finished*[T: proc](x: T): bool {.noSideEffect, inline, magic: "Finished".} =
     ## It can be used to determine if a first class iterator has finished.
     when T is "iterator":
       {.emit: """