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
commit fe7a76f62f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()