parent
d6c957e9b4
commit
c19d6cb620
1 changed files with 2 additions and 0 deletions
|
|
@ -787,6 +787,8 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
|
|||
result = addImplicitGeneric(typ)
|
||||
else:
|
||||
for i in 0 .. <paramType.sons.len:
|
||||
if paramType.sons[i] == paramType:
|
||||
localError(info, errIllegalRecursionInTypeX, typeToString(paramType))
|
||||
var lifted = liftingWalk(paramType.sons[i])
|
||||
if lifted != nil:
|
||||
paramType.sons[i] = lifted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue