diff options
Diffstat (limited to 'nimpretty')
-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 |