diff options
author | Araq <rumpf_a@web.de> | 2018-10-25 11:18:03 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-25 11:18:03 +0200 |
commit | 0afca3dd6bc7fc2e52ac78c796b0cb1bbf7d47e8 (patch) | |
tree | 952462481cd20fdbebf64ff7ae9a88570abe58ee /nimpretty/tests | |
parent | eb2e494a522a460c1018e46276e662aec00ecfe7 (diff) | |
download | Nim-0afca3dd6bc7fc2e52ac78c796b0cb1bbf7d47e8.tar.gz |
nimpretty: fixes #9504
Diffstat (limited to 'nimpretty/tests')
-rw-r--r-- | nimpretty/tests/exhaustive.nim | 5 | ||||
-rw-r--r-- | nimpretty/tests/expected/exhaustive.nim | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim index ab58b7da4..c02f69668 100644 --- a/nimpretty/tests/exhaustive.nim +++ b/nimpretty/tests/exhaustive.nim @@ -329,3 +329,8 @@ proc getKeyAndData(cursor: int, op: int): #!nimpretty on const test = r"C:\Users\-\Desktop\test.txt" + +proc abcdef*[T:not (tuple|object|string|cstring|char|ref|ptr|array|seq|distinct)]() = + # bug #9504 + type T2 = a.type + discard diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim index b114e9b8c..03c4eb929 100644 --- a/nimpretty/tests/expected/exhaustive.nim +++ b/nimpretty/tests/expected/exhaustive.nim @@ -338,3 +338,8 @@ proc getKeyAndData(cursor: int; op: int): #!nimpretty on const test = r"C:\Users\-\Desktop\test.txt" + +proc abcdef*[T: not (tuple|object|string|cstring|char|ref|ptr|array|seq|distinct)]() = + # bug #9504 + type T2 = a.type + discard |