fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg (#14768)
This commit is contained in:
parent
235d8ba069
commit
511bd947d3
2 changed files with 11 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ proc semGenericStmt(c: PContext, n: PNode,
|
|||
# We're not interested in the example code during this pass so let's
|
||||
# skip it
|
||||
if s.magic == mRunnableExamples:
|
||||
inc first
|
||||
first = result.safeLen # see trunnableexamples.fun3
|
||||
of skGenericParam:
|
||||
result[0] = newSymNodeTypeDesc(s, fn.info)
|
||||
onUse(fn.info, s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue