summary refs log tree commit diff stats
path: root/tests/ccgbugs
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 /tests/ccgbugs
parent4fac8af0c9408ee2a8d454693d17fd84067d24c3 (diff)
downloadNim-d447c0fe3f39114f0913df5804e5f7a3406d6edb.tar.gz
use typeof instead type (#16962)
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r--tests/ccgbugs/t6756.nim2
-rw-r--r--tests/ccgbugs/tuple_canon.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ccgbugs/t6756.nim b/tests/ccgbugs/t6756.nim
index 5170a99f4..5990eba58 100644
--- a/tests/ccgbugs/t6756.nim
+++ b/tests/ccgbugs/t6756.nim
@@ -10,7 +10,7 @@ type
     v: T
 
 template templ(o: A, op: untyped): untyped =
-  type T = type(o.v)
+  type T = typeof(o.v)
 
   var res: A[T]
 
diff --git a/tests/ccgbugs/tuple_canon.nim b/tests/ccgbugs/tuple_canon.nim
index aa9605d4b..fbb971861 100644
--- a/tests/ccgbugs/tuple_canon.nim
+++ b/tests/ccgbugs/tuple_canon.nim
@@ -68,7 +68,7 @@ template odd*(i: int) : untyped =
 
 proc vidx(hg: HexGrid; col, row: int; i: HexVtxIndex) : Index =
     #NOTE: this variation compiles
-    #var offset : type(evenSharingOffsets[i])
+    #var offset : typeof(evenSharingOffsets[i])
     #
     #if odd(col):
     #    offset = oddSharingOffsets[i]