Turn some of the errors back into warnings
This commit is contained in:
parent
ce9a4ed124
commit
be95f8fdfa
7 changed files with 63 additions and 33 deletions
|
|
@ -336,6 +336,11 @@ proc semConstructTypeAux(c: PContext,
|
|||
let base = t[0]
|
||||
if base == nil: break
|
||||
t = skipTypes(base, skipPtrs)
|
||||
if t.kind == tyGenericParam:
|
||||
# XXX: This is not supposed to happen, but apparently
|
||||
# there are some issues in semtypinst. Luckily, it
|
||||
# seems to affect only `computeRequiresInit`.
|
||||
return
|
||||
constrCtx.needsFullInit = constrCtx.needsFullInit or
|
||||
tfNeedsFullInit in t.flags
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue