mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
repr: fix rendering of 'big, =destroy etc (#17624)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user