fixes #4555
This commit is contained in:
parent
24b72cebe7
commit
de6198c747
8 changed files with 38 additions and 14 deletions
|
|
@ -675,7 +675,7 @@ proc typeSectionLeftSidePass(c: PContext, n: PNode) =
|
|||
let name = a.sons[0]
|
||||
var s: PSym
|
||||
if name.kind == nkDotExpr:
|
||||
s = qualifiedLookUp(c, name)
|
||||
s = qualifiedLookUp(c, name, {checkUndeclared, checkModule})
|
||||
if s.kind != skType or s.typ.skipTypes(abstractPtrs).kind != tyObject or tfPartial notin s.typ.skipTypes(abstractPtrs).flags:
|
||||
localError(name.info, "only .partial objects can be extended")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue