This commit is contained in:
Araq 2014-12-31 16:07:56 +01:00
commit 2ee2401336
5 changed files with 10 additions and 7 deletions

View file

@ -653,7 +653,8 @@ proc checkForMetaFields(n: PNode) =
template checkMeta(t) =
if t != nil and t.isMetaType and tfGenericTypeParam notin t.flags:
localError(n.info, errTIsNotAConcreteType, t.typeToString)
if n.isNil: return
case n.kind
of nkRecList, nkRecCase:
for s in n: checkForMetaFields(s)