repr: fix rendering of 'big, =destroy etc (#17624)

This commit is contained in:
Timothee Cour
2021-04-02 23:19:17 -07:00
committed by GitHub
parent 61c1e35181
commit fe7a76f62f
2 changed files with 37 additions and 3 deletions

View File

@@ -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()