Fixes based on @Araq's feedback.
This commit is contained in:
parent
3cbfd56e1d
commit
814f527175
3 changed files with 5 additions and 4 deletions
|
|
@ -1598,7 +1598,7 @@ proc toObject*(typ: PType): PType =
|
|||
## Otherwise ``typ`` is simply returned as-is.
|
||||
result = typ
|
||||
if result.kind == tyRef:
|
||||
result = result.sons[0]
|
||||
result = result.lastSon
|
||||
|
||||
when false:
|
||||
proc containsNil*(n: PNode): bool =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue