make repr handle setters foo= (#17683)
This commit is contained in:
parent
cce1b24b1c
commit
877cc5e4ff
2 changed files with 17 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue