summary refs log tree commit diff stats
path: root/tests/ccgbugs/t6756.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/t6756.nim')
-rw-r--r--tests/ccgbugs/t6756.nim2
1 files changed, 1 insertions, 1 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]