summary refs log tree commit diff stats
path: root/tests/stdlib/uselocks.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/uselocks.nim')
-rw-r--r--tests/stdlib/uselocks.nim18
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/stdlib/uselocks.nim b/tests/stdlib/uselocks.nim
index e82de8adf..e9d23f9d9 100644
--- a/tests/stdlib/uselocks.nim
+++ b/tests/stdlib/uselocks.nim
@@ -11,21 +11,5 @@ proc use* (m: var MyType): int =
     result = 3
 
 block:
-  # bug #14873
   var l: Lock
-  doAssert ($l).len > 0
-    # on posix, "()", on windows, something else, but that shouldn't be part of the spec
-    # what matters is that `$` doesn't cause the codegen bug mentioned
-
-when true: # intentional
-  # bug https://github.com/nim-lang/Nim/issues/14873#issuecomment-784241605
-  type
-    Test = object
-      path: string # Removing this makes both cases work.
-      lock: Lock
-  # A: This is not fine.
-  var a = Test()
-  proc main(): void =
-    # B: This is fine.
-    var b = Test()
-  main()
+  doAssert $l == "()"