summary refs log tree commit diff stats
path: root/compiler/semmagic.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-11-18 23:03:16 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-11-18 23:03:16 +0100
commit15487438566ed1b22ee3b840749f68be73d07582 (patch)
treefd98eee1ea5446b1e072cd85643939f919578f7d /compiler/semmagic.nim
parenta9ac24169167246dea63605a8556ae9b6629c66e (diff)
downloadNim-15487438566ed1b22ee3b840749f68be73d07582.tar.gz
make tests green again
Diffstat (limited to 'compiler/semmagic.nim')
-rw-r--r--compiler/semmagic.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim
index 0803b99ec..0d0f2ee82 100644
--- a/compiler/semmagic.nim
+++ b/compiler/semmagic.nim
@@ -127,7 +127,7 @@ proc evalTypeTrait(traitCall: PNode, operand: PType, context: PSym): PNode =
   of "not":
     return typeWithSonsResult(tyNot, @[operand])
   of "name":
-    result = newStrNode(nkStrLit, operand.typeToString(preferName))
+    result = newStrNode(nkStrLit, operand.typeToString(preferTypeName))
     result.typ = newType(tyString, context)
     result.info = traitCall.info
   of "arity":