This commit is contained in:
Araq
2015-04-21 08:17:40 +02:00
parent f7f9265399
commit 248dc42aa5
2 changed files with 3 additions and 1 deletions

View File

@@ -541,6 +541,9 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
of tyProc:
result = if tfIterator in t.flags: "iterator (" else: "proc ("
for i in countup(1, sonsLen(t) - 1):
if t.n != nil and i < t.n.len and t.n[i].kind == nkSym:
add(result, t.n[i].sym.name.s)
add(result, ": ")
add(result, typeToString(t.sons[i]))
if i < sonsLen(t) - 1: add(result, ", ")
add(result, ')')

View File

@@ -2,7 +2,6 @@ version 0.10.4
==============
- make 'nil' work for 'add' and 'len'
- enable parameter info for nimsuggest
version 1.0
===========