diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-11-18 23:03:16 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-11-18 23:03:16 +0100 |
commit | 15487438566ed1b22ee3b840749f68be73d07582 (patch) | |
tree | fd98eee1ea5446b1e072cd85643939f919578f7d /compiler/semmagic.nim | |
parent | a9ac24169167246dea63605a8556ae9b6629c66e (diff) | |
download | Nim-15487438566ed1b22ee3b840749f68be73d07582.tar.gz |
make tests green again
Diffstat (limited to 'compiler/semmagic.nim')
-rw-r--r-- | compiler/semmagic.nim | 2 |
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": |