summary refs log tree commit diff stats
path: root/nimpretty/tests/exhaustive.nim
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-02-08 02:46:07 -0600
committerGitHub <noreply@github.com>2021-02-08 09:46:07 +0100
commitd447c0fe3f39114f0913df5804e5f7a3406d6edb (patch)
treea1ec482ca0b184819dc0fdffe463e53cf6959b72 /nimpretty/tests/exhaustive.nim
parent4fac8af0c9408ee2a8d454693d17fd84067d24c3 (diff)
downloadNim-d447c0fe3f39114f0913df5804e5f7a3406d6edb.tar.gz
use typeof instead type (#16962)
Diffstat (limited to 'nimpretty/tests/exhaustive.nim')
-rw-r--r--nimpretty/tests/exhaustive.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim
index 2ba885d9a..83f4f04c3 100644
--- a/nimpretty/tests/exhaustive.nim
+++ b/nimpretty/tests/exhaustive.nim
@@ -418,9 +418,9 @@ proc isValid1*[A](s: HashSet[A]): bool {.deprecated:
   result = s.data.len > 0
   # bug #11468
 
-assert $type(a) == "Option[system.int]"
-foo(a, $type(b), c)
-foo(type(b), c) # this is ok
+assert $typeof(a) == "Option[system.int]"
+foo(a, $typeof(b), c)
+foo(typeof(b), c) # this is ok
 
 proc `<`*[A](s, t: A): bool = discard
 proc `==`*[A](s, t: HashSet[A]): bool = discard