fixes #4429
This commit is contained in:
parent
4f7a2e9def
commit
928222cc67
1 changed files with 3 additions and 1 deletions
|
|
@ -541,7 +541,9 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
|
||||||
else:
|
else:
|
||||||
result.add typeToString(t.sons[0])
|
result.add typeToString(t.sons[0])
|
||||||
of tyRange:
|
of tyRange:
|
||||||
result = "range " & rangeToStr(t.n)
|
result = "range "
|
||||||
|
if t.n != nil and t.n.kind == nkRange:
|
||||||
|
result.add rangeToStr(t.n)
|
||||||
if prefer != preferExported:
|
if prefer != preferExported:
|
||||||
result.add("(" & typeToString(t.sons[0]) & ")")
|
result.add("(" & typeToString(t.sons[0]) & ")")
|
||||||
of tyProc:
|
of tyProc:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue