minor code style changes
This commit is contained in:
parent
613ea6e85e
commit
7205c3ebe2
3 changed files with 13 additions and 12 deletions
|
|
@ -25,7 +25,7 @@ proc checkConstructedType*(conf: ConfigRef; info: TLineInfo, typ: PType) =
|
|||
elif t.kind in {tyVar, tyLent} and t[0].kind in {tyVar, tyLent}:
|
||||
localError(conf, info, "type 'var var' is not allowed")
|
||||
elif computeSize(conf, t) == szIllegalRecursion or isTupleRecursive(t):
|
||||
localError(conf, info, "illegal recursion in type '" & typeToString(t) & "'")
|
||||
localError(conf, info, "illegal recursion in type '" & typeToString(t) & "'")
|
||||
when false:
|
||||
if t.kind == tyObject and t[0] != nil:
|
||||
if t[0].kind != tyObject or tfFinal in t[0].flags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue