summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-04-06 22:21:58 +0800
committerGitHub <noreply@github.com>2021-04-06 16:21:58 +0200
commitc7b4639460dd377ee937e3468df9b7041744302f (patch)
tree190da0bc3fe40f203110328e268bf649ab627c39 /lib/core
parent7bfb9f00022513c2d0f4f93799c07be7e9ffa1e6 (diff)
downloadNim-c7b4639460dd377ee937e3468df9b7041744302f.tar.gz
ref #14873 (#17644)
* ref #14873

* comment

* Update lib/core/locks.nim
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/locks.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/core/locks.nim b/lib/core/locks.nim
index bddd6d864..1540e2bcd 100644
--- a/lib/core/locks.nim
+++ b/lib/core/locks.nim
@@ -28,6 +28,11 @@ type
 
 {.push stackTrace: off.}
 
+
+proc `$`*(lock: Lock): string =
+  # workaround bug #14873
+  result = "()"
+
 proc initLock*(lock: var Lock) {.inline.} =
   ## Initializes the given lock.
   when not defined(js):