diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-09 02:37:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 09:37:10 +0200 |
commit | 877cc5e4ff63ddd03c5bc057379adb5a929d8ac2 (patch) | |
tree | 3bcfdbb12228ca01fa94ffa3c7b8c88541a7c0fa /tests/stdlib/trepr.nim | |
parent | cce1b24b1cc3860ff503668761d2798b1b1d1ef0 (diff) | |
download | Nim-877cc5e4ff63ddd03c5bc057379adb5a929d8ac2.tar.gz |
make repr handle setters `foo=` (#17683)
Diffstat (limited to 'tests/stdlib/trepr.nim')
-rw-r--r-- | tests/stdlib/trepr.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/stdlib/trepr.nim b/tests/stdlib/trepr.nim index 3dcbe9b69..f72bbb34e 100644 --- a/tests/stdlib/trepr.nim +++ b/tests/stdlib/trepr.nim @@ -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: |