From 248dc42aa5c18aae9d63c863998ca938593bc227 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 21 Apr 2015 08:17:40 +0200 Subject: [PATCH] fixes #2520 --- compiler/types.nim | 3 +++ todo.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/types.nim b/compiler/types.nim index 153c26a42f..7f05e7051b 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 06d56aef56..a61f932a93 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 ===========