Markdown code blocks part 6 (#20292)
This commit is contained in:
parent
fb2773411e
commit
0f555110e6
6 changed files with 365 additions and 357 deletions
|
|
@ -550,11 +550,10 @@ proc inconsistentVarTypes(f, a: PType): bool {.inline.} =
|
|||
|
||||
proc procParamTypeRel(c: var TCandidate, f, a: PType): TTypeRelation =
|
||||
## For example we have:
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## ```
|
||||
## proc myMap[T,S](sIn: seq[T], f: proc(x: T): S): seq[S] = ...
|
||||
## proc innerProc[Q,W](q: Q): W = ...
|
||||
##
|
||||
## ```
|
||||
## And we want to match: myMap(@[1,2,3], innerProc)
|
||||
## This proc (procParamTypeRel) will do the following steps in
|
||||
## three different calls:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue