diff options
author | Araq <rumpf_a@web.de> | 2018-10-25 11:48:06 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-25 11:48:06 +0200 |
commit | 87d60b2a4bbcb5bd89a97f30738789c46b5628b2 (patch) | |
tree | 60035ff1d58bc57cc360d6e4fafc5a89756a1399 /nimpretty/tests | |
parent | 0afca3dd6bc7fc2e52ac78c796b0cb1bbf7d47e8 (diff) | |
download | Nim-87d60b2a4bbcb5bd89a97f30738789c46b5628b2.tar.gz |
nimpretty: fixes #9500
Diffstat (limited to 'nimpretty/tests')
-rw-r--r-- | nimpretty/tests/exhaustive.nim | 23 | ||||
-rw-r--r-- | nimpretty/tests/expected/exhaustive.nim | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim index c02f69668..9202de703 100644 --- a/nimpretty/tests/exhaustive.nim +++ b/nimpretty/tests/exhaustive.nim @@ -334,3 +334,26 @@ proc abcdef*[T:not (tuple|object|string|cstring|char|ref|ptr|array|seq|distinct) # bug #9504 type T2 = a.type discard + +proc fun() = + #[ + this one here + ]# + discard + +proc fun2() = + ##[ + foobar + ]## + discard + +#[ +foobar +]# + +proc fun3() = + discard + +##[ +foobar +]## diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim index 03c4eb929..6d000d524 100644 --- a/nimpretty/tests/expected/exhaustive.nim +++ b/nimpretty/tests/expected/exhaustive.nim @@ -343,3 +343,26 @@ proc abcdef*[T: not (tuple|object|string|cstring|char|ref|ptr|array|seq|distinct # bug #9504 type T2 = a.type discard + +proc fun() = + #[ + this one here + ]# + discard + +proc fun2() = + ##[ + foobar + ]## + discard + +#[ +foobar +]# + +proc fun3() = + discard + +##[ +foobar +]## |