This commit is contained in:
Araq 2015-04-21 08:17:40 +02:00
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: of tyProc:
result = if tfIterator in t.flags: "iterator (" else: "proc (" result = if tfIterator in t.flags: "iterator (" else: "proc ("
for i in countup(1, sonsLen(t) - 1): 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])) add(result, typeToString(t.sons[i]))
if i < sonsLen(t) - 1: add(result, ", ") if i < sonsLen(t) - 1: add(result, ", ")
add(result, ')') add(result, ')')

View file

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