* fixes #20856; store defaults directly * fixes * fixes * check * fixes
This commit is contained in:
parent
cdbf5b4699
commit
1707bc4a99
3 changed files with 16 additions and 10 deletions
|
|
@ -1066,13 +1066,6 @@ proc transform(c: PTransf, n: PNode): PNode =
|
|||
result = n
|
||||
of nkExceptBranch:
|
||||
result = transformExceptBranch(c, n)
|
||||
of nkObjConstr:
|
||||
result = n
|
||||
if result.typ.skipTypes({tyGenericInst, tyAlias, tySink}).kind == tyObject or
|
||||
result.typ.skipTypes({tyGenericInst, tyAlias, tySink}).kind == tyRef and result.typ.skipTypes({tyGenericInst, tyAlias, tySink})[0].kind == tyObject:
|
||||
result.sons.add result[0].sons
|
||||
result[0] = newNodeIT(nkType, result.info, result.typ)
|
||||
result = transformSons(c, result)
|
||||
of nkCheckedFieldExpr:
|
||||
result = transformSons(c, n)
|
||||
if result[0].kind != nkDotExpr:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue