From 2cea52ee7e7d0f118976df5311a84540cbea85cd Mon Sep 17 00:00:00 2001 From: Clyybber Date: Tue, 11 Aug 2020 22:28:49 +0200 Subject: [PATCH] Allow pragmas on parameters (#15178) --- compiler/semtypes.nim | 4 ++-- tests/template/tparams_gensymed.nim | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index c2aeadc217..6a1c1afc9f 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -1234,7 +1234,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode, if typ == nil: typ = def.typ if isEmptyContainer(typ): - localError(c.config, a.info, "cannot infer the type of parameter '" & a[0].ident.s & "'") + localError(c.config, a.info, "cannot infer the type of parameter '" & $a[0] & "'") if typ.kind == tyTypeDesc: # consider a proc such as: @@ -1265,7 +1265,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode, continue for j in 0..