diff options
-rw-r--r-- | compiler/types.nim | 3 | ||||
-rw-r--r-- | todo.txt | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/compiler/types.nim b/compiler/types.nim index 153c26a42..7f05e7051 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -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, ')') diff --git a/todo.txt b/todo.txt index 06d56aef5..a61f932a9 100644 --- a/todo.txt +++ b/todo.txt @@ -2,7 +2,6 @@ version 0.10.4 ============== - make 'nil' work for 'add' and 'len' -- enable parameter info for nimsuggest version 1.0 =========== |