make repr handle setters foo= (#17683)

This commit is contained in:
Timothee Cour 2021-04-09 02:37:10 -05:00 • committed by GitHub
commit 877cc5e4ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 5 deletions

View file

@ -163,6 +163,15 @@ proc `foo bar baz`(): int =
"""
doAssert a2 == a
block: # setters: `foo=`
let a = deb:
proc `foo=`() = discard
doAssert a == """
proc `foo=`() =
discard
"""
block: # bug #14850
block:
let a = deb: