summary refs log tree commit diff stats
path: root/compiler/semmagic.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-01-27 01:21:35 +0200
committerZahary Karadjov <zahary@gmail.com>2017-03-24 17:03:55 +0200
commit9574d318ae1e4cf648f7384d99afadd8a2d89520 (patch)
treeb7eab728ec9b6adc591e8de5aad86f74b4df5629 /compiler/semmagic.nim
parentc605d575746f45a722542c67ece0fcd133ba9799 (diff)
downloadNim-9574d318ae1e4cf648f7384d99afadd8a2d89520.tar.gz
use lower-case proc names
Diffstat (limited to 'compiler/semmagic.nim')
-rw-r--r--compiler/semmagic.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim
index ee6329125..3e1989eaf 100644
--- a/compiler/semmagic.nim
+++ b/compiler/semmagic.nim
@@ -91,7 +91,7 @@ proc toNode(t: PType, i: TLineInfo): PNode =
 
 const 
   # these are types that use the bracket syntax for instantiation
-  # they can be subjected to the type traits `GenericHead` and 
+  # they can be subjected to the type traits `genericHead` and 
   # `Uninstantiated`
   tyUserDefinedGenerics* = {tyGenericInst, tyGenericInvocation,
                             tyUserTypeClassInst}
@@ -120,15 +120,15 @@ proc evalTypeTrait(trait: PNode, operand: PType, context: PSym): PNode =
     result = newIntNode(nkIntLit, typ.len - ord(typ.kind==tyProc))
     result.typ = newType(tyInt, context)
     result.info = trait.info
-  of "GenericHead":
+  of "genericHead":
     var res = uninstantiate(typ)
     if res == typ and res.kind notin tyMagicGenerics:
       localError(trait.info,
-        "GenericHead expects a generic type. The given type was " &
+        "genericHead expects a generic type. The given type was " &
         typeToString(typ))
       return newType(tyError, context).toNode(trait.info)
     result = res.base.toNode(trait.info)
-  of "StripGenericParams":
+  of "stripGenericParams":
     result = uninstantiate(typ).toNode(trait.info)
   else:
     internalAssert false