fixes #1774
This commit is contained in:
parent
a93585e47f
commit
2ee2401336
5 changed files with 10 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue