* fix #16722

* fix spacing

* spacing
This commit is contained in:
cooldome 2021-01-15 18:16:24 +00:00 • committed by GitHub
commit fc9cf2088d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 4 deletions

View file

@ -524,6 +524,7 @@ proc transformConv(c: PTransf, n: PNode): PNode =
result[0] = transform(c, n[1])
else:
result = transform(c, n[1])
result.typ = n.typ
else:
result = transformSons(c, n)
of tyObject:
@ -536,6 +537,7 @@ proc transformConv(c: PTransf, n: PNode): PNode =
result[0] = transform(c, n[1])
else:
result = transform(c, n[1])
result.typ = n.typ
of tyGenericParam, tyOrdinal:
result = transform(c, n[1])
# happens sometimes for generated assignments, etc.