Fixes based on @Araq's feedback.

This commit is contained in:
Dominik Picheta 2017-02-01 21:51:17 +01:00
commit 814f527175
3 changed files with 5 additions and 4 deletions

View file

@ -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 =