* getType now works with tyInferred (concepts); refs #18220 * avoid cast * add more docs
This commit is contained in:
parent
2ca6169ba1
commit
897e50d5fe
2 changed files with 79 additions and 23 deletions
|
|
@ -289,7 +289,7 @@ proc mapTypeToAstX(cache: IdentCache; t: PType; info: TLineInfo;
|
|||
of tyNot: result = mapTypeToBracket("not", mNot, t, info)
|
||||
of tyIterable: result = mapTypeToBracket("iterable", mIterableType, t, info)
|
||||
of tyAnything: result = atomicType("anything", mNone)
|
||||
of tyInferred: assert false
|
||||
of tyInferred: result = mapTypeToAstX(cache, t.lastSon, info, idgen, inst, allowRecursion)
|
||||
of tyStatic, tyFromExpr:
|
||||
if inst:
|
||||
if t.n != nil: result = t.n.copyTree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue