summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-02 23:19:17 -0700
committerGitHub <noreply@github.com>2021-04-03 08:19:17 +0200
commitfe7a76f62fa1563a76e1dcce18e3ee98bcd5d36a (patch)
treef86b306aa7ed67d250f92288607ae6d54e80a953 /tests/stdlib
parent61c1e35181206b4305b6f57662bd9b2524c0fef8 (diff)
downloadNim-fe7a76f62fa1563a76e1dcce18e3ee98bcd5d36a.tar.gz
repr: fix rendering of `'big`, `=destroy` etc (#17624)
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/trepr.nim18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/stdlib/trepr.nim b/tests/stdlib/trepr.nim
index 357854d67..bca9b9f91 100644
--- a/tests/stdlib/trepr.nim
+++ b/tests/stdlib/trepr.nim
@@ -145,5 +145,23 @@ do:
 do:
   4"""
 
+  block: # bug #17292 (bug 4)
+    let a = deb:
+      proc `=destroy`() = discard
+      proc `'foo`(): int = discard
+      proc `foo bar baz`(): int = discard
+    let a2 = """
+
+proc `=destroy`() =
+  discard
+
+proc `'foo`(): int =
+  discard
+
+proc `foo bar baz`(): int =
+  discard
+"""
+    doAssert a2 == a
+
 static: main()
 main()