summary refs log tree commit diff stats
path: root/nimpretty/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-25 11:18:03 +0200
committerAraq <rumpf_a@web.de>2018-10-25 11:18:03 +0200
commit0afca3dd6bc7fc2e52ac78c796b0cb1bbf7d47e8 (patch)
tree952462481cd20fdbebf64ff7ae9a88570abe58ee /nimpretty/tests
parenteb2e494a522a460c1018e46276e662aec00ecfe7 (diff)
downloadNim-0afca3dd6bc7fc2e52ac78c796b0cb1bbf7d47e8.tar.gz
nimpretty: fixes #9504
Diffstat (limited to 'nimpretty/tests')
-rw-r--r--nimpretty/tests/exhaustive.nim5
-rw-r--r--nimpretty/tests/expected/exhaustive.nim5
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