diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-01-27 01:21:35 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2017-03-24 17:03:55 +0200 |
commit | 9574d318ae1e4cf648f7384d99afadd8a2d89520 (patch) | |
tree | b7eab728ec9b6adc591e8de5aad86f74b4df5629 /compiler/semmagic.nim | |
parent | c605d575746f45a722542c67ece0fcd133ba9799 (diff) | |
download | Nim-9574d318ae1e4cf648f7384d99afadd8a2d89520.tar.gz |
use lower-case proc names
Diffstat (limited to 'compiler/semmagic.nim')
-rw-r--r-- | compiler/semmagic.nim | 8 |
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 |