summary refs log tree commit diff stats
path: root/tests/vm/tvmmisc.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-01-18 16:50:36 +0300
committerGitHub <noreply@github.com>2024-01-18 14:50:36 +0100
commit322433755058eae481f4e92b2070e886f097bd9f (patch)
tree0a758c0b1709a96ec477ea931898695d39579b6b /tests/vm/tvmmisc.nim
parent473f259268d03f87874c674c08c74cf32da11d4a (diff)
downloadNim-322433755058eae481f4e92b2070e886f097bd9f.tar.gz
give typedesc param nodes type T not typedesc[T] [backport:2.0] (#23115)
fixes https://github.com/nim-lang/Nim/issues/23112, fixes a mistake in
https://github.com/nim-lang/Nim/pull/22581

This makes `getType(t)` where `t` is a typedesc param with value `T`
equal to `getType(T)`.
Diffstat (limited to 'tests/vm/tvmmisc.nim')
-rw-r--r--tests/vm/tvmmisc.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim
index cade68577..f277c20d8 100644
--- a/tests/vm/tvmmisc.nim
+++ b/tests/vm/tvmmisc.nim
@@ -4,8 +4,7 @@ import os
 # bug #4462
 block:
   proc foo(t: typedesc) {.compileTime.} =
-    assert sameType(getType(t), getType(typedesc[int]))
-    assert sameType(getType(t), getType(type int))
+    assert sameType(getType(t), getType(int))
 
   static:
     foo(int)